UserPreferences

AtomApiTestPost


Atom API POST request validation/interpretation rules -- Atom format

See AtomApiTest, AtomApiTestDiscussion

Request

Children of [WWW]entry:

id:

link:

title:

summary:

content:

issued:

modified:

created:

author:

contributor:

generator:

Response

Expected status codes from a POST are 201, 303, 400, and 500. 401, 404, and 410 are also possible.

201 specifies the location of the resource created. Response includes a Location: header with the URI of the created resource, i.e. the URI used to edit the entry (as opposed to the URI used to display the content). The body of the response will contain the entry "filled in" with time stamps and any other data the server choses to reveal. This must contain enough information to enable a client to issue a subsequent PUT to this location. Note: the server may chose to omit the content in the response, particularly if it is large.

303 The body of this response does not contain the filled in Entry, but the filled in Entry can be found under a different URI and SHOULD be retrieved using a GET method on that resource. The different URI SHOULD be given by the Location field in the response.

400 indicates that the server believes that that data sent constitutes an invalid request. A short description of the error will appear on the status line itself. A longer description (in plain text format) will appear in the body.

500 indicates that the server detected an internal error on the server processing this request (such as an unhandled exception). A short description of the error will appear on the status line itself. A longer description (in plain text format) will appear in the body.