95 karma · joined January 23, 2011
Nesting of resources in a REST API can become problematic, for these reasons, so another option would be to get rid of the nesting and use query parameters to filter based on whatever criteria you want. This is the motivation for PostgREST [1] where the author views the shortcomings of nested API resources as similar to those of hierarchical databases. GraphQL solves this similarly, it also has a richer query language, but it's missing some of the benefits of REST like caching, etc.
Slides: http://www.bsdcan.org/2010/schedule/attachments/135_crypto1h...
This has been posted a few times on HN, so just do a site search to get the previous comments.