On Jun 14, 2007, at 2:14 PM, Anne Thomas Manes wrote:

> Let's say for example you have a service that manages information
> about people. A service-specific interface would expose interfaces
> like:
>
> person getPersonByName("anne")
>
> person[] getPeopleByAge("29")
>
> and a service-specific POX representation of these methods would be
> something like:
>
> GET http://example.org/getPersonByName?name=anne
> GET http://example.org/getPeopleByAge?age=29
>
> A RESTful interface would be more like this:
>
> GET http://example.org/people/anne
> GET http://example.org/people?age=29

You might want to avoid using GET as an example, because from a REST  
point of view

> GET http://example.org/getPersonByName?name=anne

and

> GET http://example.org/people/anne

are equally RESTful (although the first one is so by accident). Using  
something like GET /application?operation=createPerson&name=Anne  
makes it a little clearer.

Stefan
--
Stefan Tilkov, http://www.innoq.com/blog/st/


Reply via email to