Resources Over MVC – Allowed Verbs

December 5, 2011 23:08 by Admin

One of the principles of REST is to use “Hypermedia As The Engine Of Application State” (HATEOAS). This means that a web service should provide its clients with all the information they need in order to interact with the service… and this information should be provided along with the response to any request. Most people understand this to mean URIs should be embedded into the responses that are served, so that a client can follow the links in order to change the application state. However, something else that the HTTP standard provides in order to support this discoverability is the Allow header that the server can populate to indicate which HTTP methods a resource support. The Resources Over MVC (ROM) assembly allows this header to be supported.