Difference between revisions of "API Collections List"
From unroole CMS wiki
Tommy.leung (Talk | contribs) (Created page with "== Summary == Allows querying for a list of collections in the channel. == URI == {{:API_Base_URI}}[channel-id]/collections == HTTP Method == GET == Required Paramaters == ...") |
Tommy.leung (Talk | contribs) |
||
Line 18: | Line 18: | ||
! Description | ! Description | ||
{{:API Required Parameter Common}} | {{:API Required Parameter Common}} | ||
+ | |} | ||
+ | |||
+ | == Optional Paramaters == | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Paramater | ||
+ | ! Default | ||
+ | ! Maximum Length | ||
+ | ! Accepted Values | ||
+ | ! Description | ||
+ | |- | ||
+ | | search | ||
+ | | string | ||
+ | | | ||
+ | | | ||
+ | | The search terms to be used in the query. | ||
+ | |- | ||
+ | | limit | ||
+ | | TBD | ||
+ | | | ||
+ | | | ||
+ | | The maximum number of assets to return. | ||
+ | |- | ||
+ | | fields | ||
+ | | id, name, items | ||
+ | | | ||
+ | | [[API Collection Fields]] | ||
+ | | List of comma separated fields to be returned in the response. | ||
|} | |} | ||
Revision as of 13:06, 31 May 2012
Summary
Allows querying for a list of collections in the channel.
URI
https://api.unroole.com/[channel-id]/collections
HTTP Method
GET
Required Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
token | API Persistence Token that identifies this user and its permissions. |
Optional Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
search | string | The search terms to be used in the query. | ||
limit | TBD | The maximum number of assets to return. | ||
fields | id, name, items | API Collection Fields | List of comma separated fields to be returned in the response. |
Response
Field | Type | Description |
---|---|---|
http_status | integer | API Status Code http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html |
error | Rails default | |
collections | array of API Collection Fields | List of collections |