On Thursday 10 January 2008, Klaas Freitag wrote:
The search URLs are ambiguous:
GET /search/requests/<requesttype>/<username>
GET /search/requests/<requesttype>/<project>
I would add the username as a parameter, so you can do stuff like:
GET /search/requests/<requesttype>?username=<name>
GET /search/requests/<requesttype>/<project>?username=<name>
This could also be extended to use other search criteria.
For changing the request status, why is there a parameter needed when the data
is written with PUT anyway? Or is it meant to be POST? What's the body then?
For deletion the natural way would be to use HTTP DELETE, but this would
imply, that the request is actually deleted. Only marking it as deleted keeps
it around. Do we really need that?
--
Cornelius Schumacher