...
Code Block |
---|
/names/00050fc9-8c49-4ec3-9d46-2eef4d4d70d1?format=json |
The default content-type is XML.
Content-Type | Format Parameter | Description |
---|---|---|
text/xml, application/xml | xml | Plain XML |
text/json, application/json | json | JavaScript Object Notation |
The Content-Type that is sent with each request to the API indicates which format the response will be for GET requests and what format the API expects the request body to be in the case of PUT or POST requests.
...
Here are some of the common responses codes.
HTTP Status Code | Description |
---|---|
200 | Success - resource updated, deleted, or retrieved |
201 | Success - resource created |
400 | Bad request |
403 | Forbidden |
404 | Resource not found |
405 | Method not allowed |
500 | Server error |
503 | Service unavailable |
Dates
XML
All dates and times are reported using the ISO8601 format (e.g. 2012-01-12T14:00:00Z).
...