Services/Sync/Server/Archived/0.3/API: Difference between revisions

Jump to navigation Jump to search
Line 92: Line 92:


'''GET''': Retrieve the object.  
'''GET''': Retrieve the object.  
<br>'''PUT''': Add/update the object (if no id is provided in the json object, it will use the id in the URL).
<br>'''PUT''': Add/update the object (if no id is provided in the json object, it will use the id in the URL). Returns the modified timestamp.
<br>'''DELETE''': Delete the object.
<br>'''DELETE''': Delete the object.


Line 100: Line 100:


'''GET''': Returns a list of ids associated with the collection.  
'''GET''': Returns a list of ids associated with the collection.  
<br>'''POST''': Takes a JSON array of WBOs (in the parameter wbo) and adds/updates them within the collection. Identical to doing a set of PUTs over /id urls.
<br>'''POST''': Takes a JSON array of WBOs and adds/updates them within the collection. Identical to doing a set of PUTs over /id urls. Returns a list of successfully stored objects (with modified timestamps) and failed ones.
<br>'''DELETE''': Deletes all objects in this collection.
<br>'''DELETE''': Deletes all objects in this collection.


canmove, Confirmed users
1,173

edits

Navigation menu