Sunday 5 August 2012

Re: [dcphp-dev] Building RESTful APIs

On 08/05/2012 12:30 PM, David wrote:
> ·PUT http://www.sample.com/file/12345-- updates or overwrites 12345
> <http://www.sample.com/file/12345%20--%20updates%20or%20overwrites%2012345>.

All very well said, but there's a bit of nuance to PUT.

According to the spec, the update should include the entire resource, not just
the bits you're updating. That drives me up the wall.

The solution to this is PATCH which allows for partial updates:
http://tools.ietf.org/html/rfc5789#section-2.1


Also, if you like Mike Amundson's work, check out RESTfest* next month in
South Carolina: http://www.restfest.org/home It's a *blast*

We (Twilio) are sponsors for the second year and last year we recorded every
session and got it online: http://vimeo.com/channels/restfest

* The other organizer is a web2project contributor, so I'm all kinds of biased.

kc

--
D. Keith Casey, Jr.
http://CaseySoftware.com

--
You received this message because you are subscribed to the Google
Group: "Washington, DC PHP Developers Group" - http://www.dcphp.net
To post, send email to washington-dcphp-group@googlegroups.com
To unsubscribe, send email to washington-dcphp-group+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/washington-dcphp-group?hl=en

0 comments:

Post a Comment