User:LesOrchard/BandwagonAPI: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 140: Line 140:
* Response  
* Response  
** Status: <tt>201 Created</tt>
** Status: <tt>201 Created</tt>
** Content-Type: empty body
** Content-Type: [[#Addon Collection]]
** Response body will be empty.
** Response body will contain the data for the freshly created collection.
** Location header points to the URL of new collection.
** Location header points to the URL of new collection.


Line 165: Line 165:
* Response (on success)  
* Response (on success)  
** Status: <tt>303 See Other</tt>
** Status: <tt>303 See Other</tt>
** Content-Type: empty body
** Content-Type: [[#Addon Collection]]
** Response body will be empty.
** Response body will reflect the change to the collection with addon added or updated.
** Location header points to the URL of collection, which will reflect the addition or update of the addon.
** Location header points to the URL of collection, which will reflect the addition or update of the addon.
*** i.e. <tt>Location: /api/1.3/sharing/collections/5497c4b6-f2e9-11dd-b326-7f8fd4293122</tt>


===== DELETE - Delete a collection =====
===== DELETE - Delete a collection =====
Line 189: Line 188:


* Response (on success)
* Response (on success)
** Status: <tt>410 Gone</tt>
** Status: <tt>303 See Other</tt>
** Content-Type: [[#Addon Collection]]
** Response body will reflect the change to the collection with addon added or updated.
** Location header points to the URL of collection, which will reflect the addition or update of the addon.


==== /api/sharing/email ====
==== /api/sharing/email ====
Confirmed users
920

edits

Navigation menu