Product Documentation articleRetrieve all submitted drafts in a library: lq851
Added by IBM contributorTao YT Yan | Edited by IBM contributorJames A Riel on April 15, 2011 | Version 2
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.
Tags: API

Overview


This is the specification for applications that retrieve lists of all submitted Draft resources contained by a Library.

URL endpoints

Perform a GET operation on one of the following URL formats:

URL
Description
/library/{library-id}/view/SubmittedDrafts/feed
Retrieve resources contained by a library 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.

Arguments

The following URL arguments are supported on this operation. The default value for any argument is marked as bold in the table below.

Argument
Values
Description
pageSize
number (10,20, etc.)
Specifies number of items to include in a paged request
page
number (1, 2, 3, etc.)
Specifies page to be retrieved assuming constant page size
sK
string {title | created | updated | published | modified }
value to sort the response
sO
string (asc, dsc)
Specifies the order of the sort as either ascending or descending
sI
number (1, 5, 10, etc.)
Specifies the start index in the collection from which the results should be returned. Ignored if page is provided
includeLocked
boolean (true, false)
if true, adds an entry extension showing if document is locked
includeLockOwner boolean true, false) if true, adds an entry extension showing who holds the lock
includePropertySheets boolean (true, false) Specifies if the property sheet field values are returned

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



GET http://example.com/dm/atom/library/_Papiplace2_RMain.nsf/view/SubmittedDrafts/feed HTTP/1.1
Accept: */*
Accept-Language: en-us,ar-SA;q=0.7,zh-CN;q=0.3
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded


Example Response



HTTP/1.1 200 OK
Server: Lotus-Domino
Content-Type: application/atom+xml
Content-Length: 2817
Content-Disposition: inline; filename="feed"
X-Server: Lotus Domino

<?xml version="1.0" encoding="utf-8" ?>
<feed xml:base="http://example.com/" xmlns="http://www.w3.org/2005/Atom" 
	xmlns:td="urn:ibm.com/td" xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<title type="text">Submitted Drafts</title>
<updated>2011-04-06T02:14:07Z</updated>
<author>
<name>Susan Adams262</name>
<uri>uid=SusanAdams262,cn=Users,l=Westford,st=Massachusetts,c=US,ou=Lotus,o=Software%20group,dc=ibm,dc=com</uri>
<email>susanAdams262@cn.ibm.com</email>
</author>
<id>urn:lsid:ibm:com:td:_Papiplace2_RMain_FD8D8869EA3CABE638525723E007BD700</id>
<td:uuid>_Papiplace2_RMain_FD8D8869EA3CABE638525723E007BD700</td:uuid>
<link href="dm/atom/library/_Papiplace2_RMain/view/_Papiplace2_RMain_FD8D8869EA3CABE638525723E007BD700/feed" rel="self"/>
<link href="LotusQuickr/apiplace2/Main.nsf/h_Toc/?OpenDocument" rel="alternate"/>
<generator uri="LotusQuickr/apiplace2/Main.nsf/h_Toc/?OpenDocument"  version="852000.000" >LotusQuickr</generator>
<serverdate>2011-04-07T02:36:16Z</serverdate>
<entry xmlns:td="urn:ibm.com/td">
<id>urn:lsid:ibm:com:td:_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32</id>
<td:uuid>_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32</td:uuid>
<link href="dm/atom/library/_Papiplace2_RMain/draftpage/_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32/entry" rel="self"/>
<link href="LotusQuickr/apiplace2/Main.nsf/D8D8869EA3CABE638525723E007BD700/DDEC586FD656F0854825786B000E2E32?OpenDocument" rel="alternate"/>
<link href="dm/atom/library/_Papiplace2_RMain/draftpage/_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32/feed" rel="current"/>
<link href="dm/atom/library/_Papiplace2_RMain/draftpage/_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32/entry" rel="edit"/>
<content  type="application/atom+xml"  src="dm/atom/library/_Papiplace2_RMain/draftpage/_Papiplace2_RMain_DDDEC586FD656F0854825786B000E2E32/feed" />
<category  term="draftpage"  scheme="tag:ibm.com,2006:td/type"  label="draftpage" />
<title type="text">workflow 1</title>
<summary type="text"><![CDATA[]]></summary>
<published>2011-04-07T02:34:53Z</published>
<updated>2011-04-07T02:34:53Z</updated>
<author>
<name>Susan Adams262</name>
<uri>uid=SusanAdams262/ou=Users/l=Westford/st=Massachusetts/c=US/ou=Lotus/o=Software group/dc=ibm/dc=com</uri>
</author>
<td:created>2011-04-07T02:34:53Z</td:created>
<td:modified>2011-04-07T02:34:53Z</td:modified>
<td:documenttype>1FD50918326905554825786B000CFE1A</td:documenttype>
<td:modifier>
<td:name>Susan Adams262</td:name>
<td:uri>uid=SusanAdams262/ou=Users/l=Westford/st=Massachusetts/c=US/ou=Lotus/o=Software group/dc=ibm/dc=com</td:uri>
</td:modifier>
<td:responseCount>0</td:responseCount>
<td:depth>0</td:depth>
</entry>
<td:totalNumber>1</td:totalNumber>
<link href="dm/atom/library/_Papiplace2_RMain/view/_Papiplace2_RMain_FD8D8869EA3CABE638525723E007BD700/feed?pageSize=10" rel="first"/></feed>