How should I deal with object hierarchies in a RESTful API?
There’s no reason not to combine these. api.example.com/user/{user_id} – return a user representation api.example.com/channel/{channel_id} – return a channel representation api.example.com/user/{user_id}/channels – return a list of channel representations api.example.com/user/{user_id}/channel_list – return a list of channel ids (or links to their full representations, using the above links) When in doubt, think about how you would display the … Read more