21
Apr
2005

rfc2068 - usage of PUT & POST in Rest

The fundamental difference between the POST and PUT requests is reflected in the different meaning of the Request-URI. The URI in a POST request identifies the resource that will handle the enclosed entity. That resource may be a data-accepting process, a gateway to some other protocol, or a separate entity that accepts annotations. In contrast, the URI in a PUT request identifies the entity enclosed with the request -- the user agent knows what URI is intended and the server MUST NOT attempt to apply the request to some other resource. If the server desires that the request be applied to a different URI, it MUST send a 301 (Moved Permanently) response; the user agent MAY then make its own decision regarding whether or not to redirect the request.

[via w3.org/Protocols/rfc2068]

links:
http://www.markbaker.ca/2002/08/HowContainersWork/
http://www.xml.com/pub/a/2004/12/01/restful-web.html

REST

@IMHO:

you do mention the flickr-api. but in my opinion this is not REST like you describe it in your article. flickr has a single service point, and is always using GET methods. (except for uploading fotos, where they use POST) But the power of flickr is that it's so basic to use. just EVERY scripting language / enviroment is able to implement this. as soon as you start to rely on excotic HTTP methods, HTTP-header info, HTTP-Auth, or similiar concepts, people will fail to be able to implement your api.

another problem with rest are its many concepts. there should be a process where at least some stuff gets standardised, or recommended. for example authentication, error handling, xml-formats, use of HTTP-methods. A service could say: "we are using concept A for authentication, concept X for error handling, but we are using our own xml-syntax for responses..." so if you start implementing such an API you could at least use some basic libs for your desired language.
logo

Mat's Blog

California Dreaming

Users Status

You are not logged in.

Search

 

Weather

Aktuelles Wetter in Kitzbuhel:


Temperatur: 8 C
UV Index: 0
Luftfeuchte: 94 %
Sichtweite: N/A km
Luftdruck: 957.7 mb
Windstärke: 3 km/h

Weather data provided by weather.com

Get Firefox

Get Firefox!

Currently Reading


William Gibson, Jarreth Merz, Matthias Scherwenikas
Neuromancer, 3 Audio-CDs

Archive

April 2005
Sun
Mon
Tue
Wed
Thu
Fri
Sat
 
 
 
 
 
 1 
 2 
 3 
 4 
 5 
 6 
 7 
 8 
 9 
10
12
13
14
16
18
19
20
22
23
24
25
27
28
29
30
 

Recent Updates

und wie sieht es mit...
und wie sieht es mit deiner privaten Hochzeit aus? ;-) wünsche...
flog - 23. Oct, 20:49
Danke!
Danke Matthias für deinen Beitrag zu diesem Schritt....
Sierra - 22. Oct, 12:44
Ja, das Offline Problem...
Ja, das Offline Problem ist auch mein Hauptproblem....
matthias - 23. Sep, 14:36
ich verwende am Mac ausschließlich...
ich verwende am Mac ausschließlich die Browser...
smeidu - 23. Sep, 14:22
Stimmt -
Den Eindruck kann ich nur bestätigen; in der Bedienung...
N_Haase - 29. Jul, 13:24
Dach
und da oben am Dach, da sollte doch seit Jahren eine...
Sierra - 12. Jun, 10:47
but yammer accepts
no Austrian mobile numbers :(
cqeb - 15. Dec, 23:45
das verpasse ich leider......
das verpasse ich leider... http://twitter.com/flog/st atus/998712029
flog - 10. Nov, 21:38

Status

Online for 2157 days
Last update: 3. Mar, 15:52

Credits

vi knallgrau GmbH

powered by Antville powered by Helma


Creative Commons License

xml version of this page

twoday.net AGB