18 Apr 2013 sness   » (Journeyer)

The HTTP OPTIONS method and potential for self-describing RESTful APIs | zacstewart.com

The HTTP OPTIONS method and potential for self-describing RESTful APIs | zacstewart.com: "What is the HTTP OPTIONS method?

To quote the spec:

This method allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.

Minimally, the response should be a 200 OK and have an Allow header with a list of HTTP methods that may be used on this resource. As an authorized user on an API, if you were to request OPTIONS /users/me, you should receive something likeā€¦

200 OK
Allow: HEAD,GET,PUT,DELETE,OPTIONS"

'via Blog this'

Syndicated 2013-04-18 21:33:00 from sness

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!