What are the main patterns and/or attributes that make an application RESTful?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Doing things RESTfully is actually hard.
At the end of the day, the big attributes are:
1 – URIs represent resources, not actions
2 – HTTP verbs describe what action to take
ie:
GETing http://www.example.com/something/1 will return the something identified by 1
POSTing http://www.example.com/something/1 will update it
PUTing http://www.example.com/something will create a new something
3 – The responses to things like GET requests should document other places the client can go.
If a client asks for http://www.example.com/movies/1 (via GET), the response should contain elements that point the client to things related. Like http://www.examples.com/review/movie/1 (which might list reviews of movie #1
This is really rough — spend a day googling around and reading. Then try to figure out who’s really talking about REST, and who’s confusing it with basic RPC stuff with simplified URL schemes.