|
|
|
|
|
by thras
6298 days ago
|
|
Use REST because it's a convention. As far as I can tell, there is no other earthly reason to use it. It certainly doesn't simplify the coding of web applications. In fact, REST barely exists in the Django world. The problem that Rails solved with CRUD, Django solved with the Admin interface. |
|
Understanding what REST actually means and whether something is RESTful isn't always obvious. To me it means use the appropriate HTTP method as defined in the RFCs; use the URL, including query string, as the sole resource descriptor; use the request body only to contain new information. I get a bit tripped up over what I understand to be Roy Fielding's objections to maintaining state through cookies - I continue to do that, but with a vague feeling of unease that I'm missing something.