News for hackers. Stuff that matters.
Re:Why and How You Should Write REST-Centric Applications by smackay on Wednesday May 18, 2011 @01:49PM (#2560963)
Hear, hear. REST APIs are particularly difficult to implement when you have multiple optional value to query/describe a particular set of resources. The RESTful way encourages an explosion of URLs to try and support the different combinations. Adding new ways to list resources at a later date is also next to impossible. Query parameters simplify the process and the API significantly and still make it easy to describe and use. For me the best approach is to mix the two: make often used, pre-defined queries RESTful then support all the specialised combinations through query parameters.

There are no comments on this comment yet.