canmove, Confirmed users
1,173
edits
m (→Sample:) |
No edit summary |
||
Line 83: | Line 83: | ||
'''GET''': Retrieve the object. | '''GET''': Retrieve the object. | ||
<br>''' | <br>'''POST''': Add/update the object. | ||
<br>'''DELETE''': Delete the object. | <br>'''DELETE''': Delete the object. | ||
Batch processing can be done with: | |||
'''https://''server''/''prefix''/''version''/''user''/''collection'' ''' | '''https://''server''/''prefix''/''version''/''user''/''collection'' ''' | ||
'''GET''': Returns a list of ids associated with the collection. | '''GET''': Returns a list of ids associated with the collection. | ||
<br>''' | <br>'''POST''': Takes an array of WBOs and adds/updates them within the collection. Identical to looping over a series of /id urls. | ||
<br>'''DELETE''': Deletes all objects in this collection. | <br>'''DELETE''': Deletes all objects in this collection. | ||
Optional parameters: | |||
{| width="100%" cellpadding="3" | |||
|- style="background-color: #efefef;" | |||
| '''Term''' | |||
| '''Description''' | |||
|- valign="top" | |||
| parentid | |||
| Returns the objects in the collection that are the children of the parent id given. | |||
|- valign="top" | |||
| type | |||
| Returns only objects in the collection that have been annotated with the type given. | |||
|- valign="top" | |||
| modified | |||
| Returns only objects in the collection that have been modified since the date given, ordered by earliest timestamp. | |||
|- valign="top" | |||
| full | |||
| If defined, returns the full objects, rather than a group of ids. | |||
|- valign="top" | |||
| limit | |||
| Caps the number of objects that will be returned. | |||
|- valign="top" | |||
| offset | |||
| Skips the first n objects, for use with the limit parameter | |||
|} | |||
= Payloads = | = Payloads = |