Confirmed users, Bureaucrats and Sysops emeriti
1,737
edits
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
* '''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 == | ||