public. Show changes between revisions
| Name | Type | Description |
| pageid | string | either an integer page ID, "home", or "=" followed by a double uri-encoded page title |
| Name | Type | Description |
| previous | string? | Previous page revision to retrieve. 'head' by default will retrieve latest revision. Positive integer will retrieve specific revision |
| redirects | int? | If zero, do not follow page redirects. |
| revision | string? | Page revision to retrieve. 'head' by default will retrieve latest revision. Positive integer will retrieve specific revision |
Setting 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.
The 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>