>>>>> "Chris" == Chris Travers <chris.trav...@gmail.com> 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[
] m...@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
   Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
                       then sign the petition. 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel

Reply via email to