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 |
| authenticate | bool? | Force authentication for request (default: false) |
| diff | {combined, all}? | Result format; 'combined' shows changes to the page contents, 'all' shows in addition the before and after versions of the page with highlighted changes; default is 'combined' |
| format | {html, xhtml}? | Result format (default: html) |
| mode | {edit, raw, view}? | which rendering mode to use when diffing; default is 'edit' |
| 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 |
| Name | Value | Description |
| BadRequest | 400 | Invalid input parameter or request body |
| Forbidden | 403 | Read access to the page is required |
| NotFound | 404 | Requested page could not be found |
| Ok | 200 | The request completed successfully |
Output:
<content type="{contenttype}">{text}</content>
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.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by