get uri drafts
/groups/{group}/uris/{uri}/drafts [GET]
API Support | Available since | Last updated | Output |
---|---|---|---|
5.3101 | 5.9903 | xml, json |
Description
Get the draft edits for a URI.
Parameters
Name | Description | Required | Type | Default |
---|---|---|---|---|
contents | The draft fragment contents to include, can be none , all | no | enum | none |
position | The position (instance number) of this document in the publication (requires publicationid ) | no | integer | 1 |
publication | Whether to do default publication auto-numbering even if no publicationid (requires transclude=true ) | no | boolean | false |
publicationid | The ID of the publication context for this document to return numbering (requires transclude=true ) | no | publicationid | |
transclude | Whether transclusions should be resolved (requires contents=all ) | no | boolean | false |
Permission
This service is restricted to guest and higher unless the group is accessible to public.
Response
The output has the following format:
<drafts [modified="2012-03-07T11:30:00+10:00"]> <draft id="234" created="2012-03-08T12:34:00+10:00"> <author id="12" ... > <fullname>John Jones</fullname> </author> [<acceptedby date="[date/time]" id="56" ... > <fullname>Alan Smith</fullname> </acceptedby>] <context fragment="2"> <uri id="789">...</uri> </context> [<document-fragment> ... </document-fragment>] </draft> ... </drafts>
Error Handling
No specific errors expected for this service.