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

前端 未结 5 786
执念已碎
执念已碎 2020-12-30 06:23

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, GE

5条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 06:29

    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???

    No this is not moving away from REST, because as far as REST is concerned /teams and /teams/new are two different resources.

提交回复
热议问题