by poutine · 14y ago · 0 comments
- Doesn't use HTTP verbs (GET, PUT, POST, DELETE) to retrieve, modify, create and remove objects.
- Doesn't use a restful url path to action on (ie. GET /users/#{user_id} to get a specific user by id, POST /users to create a new user).
- Doesn't use HTTP codes to return results (ie. HTTP 200 for normal operations, 201 for created, 40x for error conditions).
That is specifically one thing which does not apply and is completely irrelevant. Good-looking URLs have nothing to do with REST.
The rest, yes.
I was just talking about the restful part of the thing, your urls can look like this:
http://example.org/?wubwub=9cec6c6faef8f7ccefe1bbf409368f1e3d0fa626
and still be part of a completely and perfectly restful service.He asked it in the context of API restfullness, as is pretty clear from the second phrase.