I've just had a look at this:
http://code.google.com/p/edukapp/source/browse/trunk/rest%20api%20calls%20examples
And some implementation here:
This isn't good RESTful API design and needs a serious rethink. If we're encoding HTTP methods into URLs we're doing it wrong!
So instead of creating URLs with "GET" and "PUT" in them (etc), we should just use the HTTP verbs in the request and respond appropriately.
(I imagine this is to get around some implementation issue with the urlrewriter or something. If so, tough, we have to make it work properly)
If no-one object I'll make a start on refactoring this...
S
Hi Scott,I totally agree - this is a bad implementation of REST.I just chose to do it that way since using doPut() doDelete() of servlets is kind of difficult to capture the request parameters,and since we are not using Jersey or RESTlet this seemed -at the time- as the most straightforward way to implement it.
I think we should move everything to a web api framework (such as RESTlet or Jersey) instead of implementing thedoGet,doPost,doPut, doDelete methods in each servlet. What do you think, does it worth the effort or is it an overkill?