Assume that at some point in the user's processing we come to a page in
which the user is to select from one of several choices that will then
determine which processing will happen on the next page ... perhaps
putting up a bus route map if she selects "bus" and a train schedule if
she selects "train".
What RESTful verb should I use to indicate this kind of choice? Show?
Assume that at some point in the user's processing we come to a page in
which the user is to select from one of several choices that will then
determine which processing will happen on the next page ... perhaps
putting up a bus route map if she selects "bus" and a train schedule if
she selects "train".
What RESTful verb should I use to indicate this kind of choice? �Show?
Possibly a choices controller with action show as you suggest.
I'm not sure a separate controller is called for. In some cases it may
make more sense to do show?transport=train , or to simply define
nonstandard REST actions bus and train.
Remember, the 7 basic REST actions are merely convention. If they do
not map well to your resources, there is nothing wrong or unRESTful with
defining custom actions.