Re:The Restful CookBook
by Drdrdrq on Sunday May 24, 2015 @12:16PM
(#9596646)
I usually use the term "REST" instead of RESTful - I know and understand the benefits of pure REST but I choose JSON over XML every time I can. Not to mention suboptimal support for PUT / DELETE / ... methods in Apache.
[ Parent
| on HN ]
Re:The Restful CookBook
by nearengine on Sunday May 24, 2015 @03:00PM
(#9597166)
REST is an architectural pattern that specifies properties about the interface, not the data - how does using JSON over XML make your interface not RESTful? In his dissertation[1], Roy Fielding always refers to data in terms of resources rather than specific formats.
[1] https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arc...
Re:The Restful CookBook
by icebraining on Sunday May 24, 2015 @04:06PM
(#9597381)
I think the idea that JSON isn't "REST" is because, unlike XML, it doesn't define links.
That said, JSON is just an encoding format. The actual response format is not "JSON", but the specific structure that your clients are expecting to receive (even if it is encoded in JSON), and that can certainly have links.