Product Documentation articleRetrieve a draft: lq851
Added by IBM contributorXiang Yu Hao | Edited by IBM contributorXiang Yu Hao on April 18, 2011 | Version 3
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.

Overview



This is the specification for applications that retrieve Draft resources.

URL endpoints



Perform a GET operation on one of the following URL formats:
URL
Description
/library/{library-id}/draft/{draft-id}/entry
Retrieve a draft given its id.

Authentication



This method does not require authentication to retrieve public resources. If authentication is provided, the user must have 'View' authority on the specified resource.


Error Codes

Error Code
Description
Unknown
Returned when the cause of an error is unknown
AccessDenied
Returned when the cause of an error is due to a permission restriction
ItemNotFound
Returned when the cause of an error is related to a resource not being found
UnsupportedOperation
Returned when the operation is not supported



Example Request






Example Response




<entry xml:base="http://hao.cn.ibm.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
	<id>urn:lsid:ibm.com:quickr:_Pplace11_RMain_D4134D7116BFAF45A4825787600158705</id>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/draftpage/_Pplace11_RMain_D4134D7116BFAF45A4825787600158705/entry" rel="self"/>
	<link href="http://hao.cn.ibm.com/LotusQuickr/place11/Main.nsf/h_Toc/4134D7116BFAF45A4825787600158705?OpenDocument" rel="alternate"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/draftpage/_Pplace11_RMain_D4134D7116BFAF45A4825787600158705/entry" rel="edit"/>
	<link href="dm/atom/library/_Pplace11_RMain/folder/_Pplace11_RMain_FCD0EF97D625305B90525670800167213/feed" rel="parent"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/draftpage/_Pplace11_RMain_D4134D7116BFAF45A4825787600158705/feed" rel="enclosure" type="application/unknown" title="drafttest1" hreflang="en" length="0"/>
	<category term="draftpage" scheme="tag:ibm.com,2006:td/type" label="draftpage"/>
	<td:responseCount>0</td:responseCount>
	<author>
		<uri>CN=wpsadmin%2Fou=Users%2Fou=Westford%2Fou=Lotus%2Fo=Software%20Group%2Fdc=lotus%2Fdc=notesdev%2Fdc=ibm%2Fdc=com</uri>
		<name>wpsadmin</name>
		<email>wpsadmin@cn.ibm.com</email>
	</author>
	<td:modifier>
		<td:uri>CN=wpsadmin%2Fou=Users%2Fou=Westford%2Fou=Lotus%2Fo=Software%20Group%2Fdc=lotus%2Fdc=notesdev%2Fdc=ibm%2Fdc=com</td:uri>
		<td:name>wpsadmin</td:name>
		<td:email>wpsadmin@cn.ibm.com</td:email>
	</td:modifier>
	<title type="text">drafttest1</title>
	<updated>2011-04-18T05:40:44Z</updated>
	<published>2011-04-18T03:55:08Z</published>
	<summary type="html">
		<![CDATA[new description]]>
		</summary>
	<td:created>2011-04-18T03:55:08Z</td:created>
	<td:modified>2011-04-18T05:40:44Z</td:modified>
</entry>



If this is a document draft, the response will be:

<entry xml:base="http://hao.cn.ibm.com/" xmlns="http://www.w3.org/2005/Atom" xmlns:td="urn:ibm.com/td" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
	<id>urn:lsid:ibm.com:quickr:_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D</id>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D/entry" rel="self"/>
	<link href="http://hao.cn.ibm.com/LotusQuickr/place11/Main.nsf/h_Toc/A63E9A33FD03EEE34825784C000DC92D?OpenDocument" rel="alternate"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D/entry" rel="edit"/>
	<link href="dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain" rel="parent"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D_A2.odt/media/2.odt" rel="attachment0" title="2.odt" length="6009"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D/media" rel="edit-media"/>
	<link href="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D/media" rel="enclosure" type="application/unknown" title="2.odt" hreflang="en" length="6009"/>
	<category term="document" scheme="tag:ibm.com,2006:td/type" label="document"/>
	<td:responseCount>0</td:responseCount>
	<author>
		<uri>CN=wpsadmin%2Fou=Users%2Fou=Westford%2Fou=Lotus%2Fo=Software%20Group%2Fdc=lotus%2Fdc=notesdev%2Fdc=ibm%2Fdc=com</uri>
		<name>wpsadmin</name>
		<email>wpsadmin@cn.ibm.com</email>
	</author>
	<td:modifier>
		<td:uri>CN=wpsadmin%2Fou=Users%2Fou=Westford%2Fou=Lotus%2Fo=Software%20Group%2Fdc=lotus%2Fdc=notesdev%2Fdc=ibm%2Fdc=com</td:uri>
		<td:name>wpsadmin</td:name>
		<td:email>wpsadmin@cn.ibm.com</td:email>
	</td:modifier>
	<title type="text">New Document1</title>
	<updated>2011-03-07T02:56:39Z</updated>
	<published>2011-03-07T02:30:34Z</published>
	<summary type="html">
		<![CDATA[111]]>
		</summary>
	<td:created>2011-03-07T02:30:34Z</td:created>
	<td:modified>2011-03-07T02:56:39Z</td:modified>
	<content type="application/unknown" xml:lang="en" src="http://hao.cn.ibm.com/dm/atom/library/_Pplace11_RMain/document/_Pplace11_RMain_DA63E9A33FD03EEE34825784C000DC92D/media"></content>
</entry>