|
|
GET:pages/{pageid}/diffFrom $1目次
Overviewpublic. Show changes between revisions Uri Parameters
Query Parameters
Return Codes
Message FormatOutput: <content type="{contenttype}">{text}</content>
Implementation NotesSetting Previous/Revision=1 refers to the earliest revision, 2 refers to
the next earliest revision, and so on. Similarly, Previous/Revision=-1
refers to the revision prior to the current, -2 refers to the
revision two prior to the current, and so on. This feature uses the ViewNoExecute mode output from GET:pages/{pageid}/contents to perform the diff comparison. Code SamplesThe following code example performs a diff between the current and previous revisions of the page called "Page_Title": Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("pages", "=Page_Title", "diff").With("revision", "head").With("previous", -1).Get();
Sample response indicating that the word "original" was deleted and the word "new" was added: <content type="application/x.deki0702+xml">
<p>
<ins>new</ins>
<del>original</del>
text
</p>
</content>
タグ:
|
|||||||||||||||||||||||||||||||||