What exactly is REST architecture and how is it implemented in Rails?
- by Jagira
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???