Nested URLs for Ember Data's RestAdapter proposal

I’m new to this debate (I’m just trying to help get it working in ember-data), but I think nested resources are much more difficult to handle generically from the client side. It is much simpler to say “when I create a comment, POST to /comments”. If I have an id of a comment, I should be able to just fetch it (/comments/:id), and not need to figure out what comment it belongs to before I can fetch it.

After dealing with this in my own app and trying to figure out how to make it less painful in ember-data, I’d have to say this has far more weight that at first it seems.

@mixonic explains in far more detail (with better arguments) here: Suggested REST API Practices (2013) :: madhatted.com

Also see: