We have REST API with a collection of channels. When requesting a channel, should I use the channels collection endpoint or channel object endpoint?
/channels/{id}/ // this?
/channel/{id}/ // or this?
I want this to work as seamless with backbone.js as possible when it comes to backbone model URL attribute.
The
/on the end should not make a difference for preference (too confusing for users if it does!) and while you can use singular or plural as you choose, be consistent throughout your app and make the individuals children of the collection. Think of the collection as being like a directory of individuals.