User:Clouserw/AMO/API: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
* <span style="color:red">open questions are in red</span>
* '''GET'''
* '''GET'''
** All GETs return ''Accept: application/json''
** All GETs return ''Accept: application/json''
Line 8: Line 7:
* '''PUT'''
* '''PUT'''
** A PUT will replace all data for an object.  If a field isn't specified in a PUT, it is reset to the default.  We'll encourage PUTs on specific URLs, eg. ''/api/addon/:id/properties/description''
** A PUT will replace all data for an object.  If a field isn't specified in a PUT, it is reset to the default.  We'll encourage PUTs on specific URLs, eg. ''/api/addon/:id/properties/description''
* '''DELETE'''
* '''OPTIONS'''
* '''OPTIONS'''
** Every URL should return a list of what it can accept with OPTIONS.  Unknown requests will get a ''405 Method Not Allowed''
** Every URL should return a list of what it can accept with OPTIONS.  Unknown requests will get a ''405 Method Not Allowed''


<span style="color:red">open questions are in red</span>


== API Spec ==
== API Spec ==
Confirmed users, Bureaucrats and Sysops emeriti
1,737

edits

Navigation menu