4 ms·
Discussed: * HTTP verbs * status codes * look of URLs * error messages Not discussed: * content types * hyperlinks Conclusion: not about REST or RESTful
by masklinn 14y ago
Discussed:
* HTTP verbs
* status codes
* look of URLs
* error messages
Not discussed:
* content types
* hyperlinks
Conclusion: not about REST or RESTfulness, guide about RPC-over-HTTP.
- hunvreus 14y agoI had left them out for a future post as I wanted to focus on quick guidelines to get started. Mea culpa for not mentioning them at least: will rectify in a couple days with a follow up post properly framing this.
- untothebreach 14y agoNot to mention that JSON (by itself) is not sufficient for hypertext
- masklinn 14y agoNaturally, but that's covered in "content types". Also you could always use LINK headers with whatever @rel, depending on what you're linking or how.
- bjeanes 14y agoOr, rather, REST level 2, instead of the [ideal level 3](http://martinfowler.com/articles/richardsonMaturityModel.html http://martinfowler.com/articles/richardsonMaturityModel.htm...)
- masklinn 14y agoFowler's levels are codewords for "let's call not rest rest, because everybody's already fucked it up". If an API is not hypertext-driven, it's not REST: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hyperte... It may not be a sufficient property, but it is a necessary one.
- vivin 14y agoThe last two are usually combined to HATEOAS or semantic media-types. Most REST things I see only talk about the first 4 points, but rarely talk about semantic media-types. Until then, it truly isn't REST; only RESTlike.