I'm having trouble determining what I might put in the body of a response to an OPTIONS
request? are there conventions? standards? What do you put? do you just provide a list of other METHODS? should you give the representation?
RESTful HTTP – OPTIONS Request Content
httphttp-responserest
Related Topic
- REST API – Issues with Implementing Custom HTTP Methods
- Rest – How to indicate to a web server the language of a resource
- Request content-type of HTTP errors
- HTTP – What Belongs in a Request Header vs the Request Body?
- HTTP Status Codes – What Code to Return for Multiple Actions with Different Statuses
- REST API Design – Handling Parameters Longer Than GET Length Limit
Best Answer
Check out RESTful web services By Leonard Richardson, Sam Ruby
Here's a link to page 98. "There are no accepted standards."
The methods are part of the
ALLOW
header. Not the body of the response.