REST API - getViewsForResource

The table summarizes the REST API - getViewsForResource.

Request

Format
GET <baseurl>/worklist/worklistviews/<startposition>/<numberofitems>
Path parameters
  • startposition: Position in the list of views from which to start this page. (The list is zero-based. To start at the first item, specify 0.)
  • numberofitems: Number of views to include in this page.

Response

JSON Returns a JSON representation of the content of the getViewsForResourceResponse element.
XML Returns the content of the getViewsForResourceResponse element (from the WorkListService schema)

Example

Request
GET <baseurl>/worklist/worklistviews/0/3
Response
{
    "xml-fragment": {
        "workListViews": [
            {
                "@workViewID": "1",
                "@name": "SCS123",
                "@description": "new view",
                "@owner": "tibco-admin",
                "@creationDate": "2013-01-21T15:22:45.257Z",
                "@modificationDate": "2013-01-21T16:58:01.367Z",
                "@public": "true",
                "orderFilterCriteria": {
                    "order": "priority ASC",
                    "filter": "(state=ALLOCATED)"
                }
            },
            {
                "@workViewID": "2",
                "@name": "SCS456",
                "@description": "second view",
                "@owner": "tibco-admin",
                "@creationDate": "2013-01-21T16:13:22.107Z",
                "@modificationDate": "2013-01-21T16:13:22.107Z",
                "@public": "true",
                "orderFilterCriteria": {
                    "order": "startDate ASC"
                }
            },
            {
                "@workViewID": "4",
                "@name": "ABC123",
                "@description": "filter - new",
                "@owner": "tibco-admin",
                "@creationDate": "2013-01-21T17:02:00.883Z",
                "@modificationDate": "2013-01-22T11:34:37.217Z",
                "@public": "true",
                "orderFilterCriteria": {
                    "order": "id ASC",
                    "filter": "(startDate<2013-01-22T00:00:00Z)"
                }
            }
        ]
    }