RE: Re: How to compromise when designing a RESTful API?

2006-09-17 Thread Winters, Chris
Thanks John for the great feedback. On the source account, you'd initiate a transfer with the arguments being the target account and the amount. The result on success would be that specific transfer's ID. Ah, but you're not saying how you 'initiate a transfer'. It's one of the

Re: Re: How to compromise when designing a RESTful API?

2006-09-17 Thread Vincent
I think the approach you're advocating forces the client to know way more about the server than it should, and to make it do way more work than it has to. POST /transfer/account/123 Host: myserver.com Content-Length: XXX toAccount456/toAccount amount300/amount It