tags:

views:

341

answers:

7

Possible Duplicates:
What is REST?
Does the WCF REST WebChannelFactory client support REST services that use redirects?
What am I not understanding about REST?

Possible Duplicates:

What is REST [closed]

What am I not understanding about REST?

What is the REST command in HTTP? I know GET and POST, which used to get or post data to/from the server. But what exactly REST does?

+3  A: 

REST is not a valid HTTP Verb. Rest stands for REpresentational State Transfer. You can find out the basics of REST here...

Jason Punyon
+1 for defining what REST stands for
JYelton
+2  A: 

Actaully REST makes use of HTTP but is not a command or such in HTTP.

Check this wikipedia article.

EDIT:

Agreeing to the comments I'd recommend this SO search.

KB22
And REST can well be implemented without HTTP as well.
mjv
It has been documented somewhere else in SO that the wiki REST article is erroneous. A search of SO will bring up a few posts with links to other more reputable sources
non sequitor
+1  A: 

REST is a style of programmatic interaction which uses standard HTTP methods such as GET, POST and PUT. So You don't actually have a "REST" method, rather you use HTTP methods in a REST-ful way.

djna
+1  A: 

Try Wikipedia. REST is a type of architecture. DELETE, GET, PUT are some of the methods defined as part of the HTTP spec.

dirkgently
+1  A: 

There seem to be some confusion. REST is not an HTTP method.

It is possible however to implement RESTful protocols over HTTP, and this can be done regardless of the GET vs. POST methods used.

mjv
+6  A: 

REST is not a valid HTTP command, those are limited to GET, POST, PUT, OPTIONS, HEAD and DELETE, TRACE and CONNECT (at least in HTTP/1.1).

REST is representational state transfer, which is something that happens at a higher level than the HTTP commands. See here for the gory details but it's basically the description of what made the web work, many clients interacting with servers but spending most of their time interacting with the users and not putting a load on the infrastructure.

The client only puts load on the infrastructure when it needs to change states.

paxdiablo
A: 

REST is an architecture described in this article: Dissertion on REST

RESTFUL web services use basic HTTP verbs to make stateless calls. The service structure has to use nouns, for example:

http://myhost/pictures/3

would return a picture with an ID of 3. This is a basic example. Most restful services are structured similiarly to this.

Egg
Actually a better URL in that case would be http://myhost/pictures/3
Andrew Swan
@Andrew Swan: Good Call
Egg