[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web services revisited

>>>>> "Chris" == Chris Travers <..hidden..> writes:
    Chris> actually look at examples, it is clear that this *is* simpler.  In
    Chris> your proposal we have something like:

    Chris> ledgersmb?a=get_customer&id=23&format=xml&company=mycompany

    Chris> The same would be a GET request to:
    Chris> ledgersmb/rest/1.4/mycompany/customer/23.xml

To add... the query string stuff is:
 1) never cacheable (Queries are never supposed to be cached, the API
    can never control it.)
 2) easily confused with a POST, or URL-encode parameters
 3) has no clear ordering of values

That's why RESTful stuff prefers to just use URLs the way they are.
It's also a THOUSAND times easier to test client with a URL like the one
chris shows, as, you can just make a file on a static server with that name,
and just use it.

]       He who is tired of Weird Al is tired of life!           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] ..hidden.. http://www.sandelman.ottawa.on.ca/ |device driver[
   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
	               then sign the petition.