Restful Web Services
Leonard Richardson and Sam Ruby book on ReST-ful Web Services ISBN:0596529260. ROA = Resource Oriented Architecture.
Interesting how they prefer using XHTML as a format instead of XML. Partially because it's more of a HyperMedia format, which makes it easier for them to provide links from resource to resource (HATEOAS: Hypermedia as the engine of Application State), and even use Web Forms as a way of documenting search param formats, etc.
- Paul Downey on Roy Fielding's pushing of the HyperText model.
- Unfortunately, since XHTML is still Web Browser-focused, they have to use not-yet-standard XHTML-v5 to have HttpPut as a Web Forms method, etc.
- they also/still seem to encourage WADL.
- Joe Gregorio 2005 column on traversing URI-s.
- 2013 tutorial on using hypermedia as an application programming interface (API) and how to design a hypermedia type to use as a basis for your API.
- 2014: Hydra
Leonard Richardson blog entry on using suffixes to denote representation format varieties (Atom Standards vs HTML, different languages, etc.)
Ah, around p252 I see the piece I want. I want to have as similar a structure between a ReST interface and the Web Browser-targeted interface as possible. There's the model:
- design your whole system as a WorldOfResources, and turn operations/functions/transactions into CRUD operations on Resources
- when you can't or don't-want-to use HttpPut and HttpDelete (LoRest), use HttpPost but passing '_method=delete' as a param in either the URI arguments or header/hidden params.
Helpful reference appendices giving opinions on usefulness of various HTTP Responses and Headers.
Edited: | Tweet this! | Search Twitter for discussion