What exactly is REST architecture and how is it implemented in Rails?

Posted by Jagira on Stack Overflow See other posts from Stack Overflow or by Jagira
Published on 2010-05-18T12:45:58Z Indexed on 2010/05/19 1:20 UTC
Read the original article Hit count: 288

Filed under:
|

This is what I think of REST architecture.

For every resource, there is an unique URI.

We can manipulate that object using its URI and HTTP actions [POST, GET, PUT and DELETE]. The HTTP request transfers the representation of the state of that object.

In all the texts I have read, REST is explained in a weird and confusing manner.

One more thing, RESTFUL implementation in rails produces different urls for different purposes. Like /teams -> for 'index' method... /teams/new -> for 'new' method and so on. Ain't this moving away from rest, which defines that each resource has one unique URI???

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rest