This is good for fetching a single item. What if you want to list resources?
Eg. List all comments of a blog?
It has to be GET /blog/:blogid/comments
Then, how about creating a new comment?
It'll be POST /blog/:blogid/comments
When both of these have the blog's hierarchy in the URL, should we take it away when fetching a single item? Or the stay consistent, we should simply do:
Eg. List all comments of a blog?
It has to be GET /blog/:blogid/comments
Then, how about creating a new comment?
It'll be POST /blog/:blogid/comments
When both of these have the blog's hierarchy in the URL, should we take it away when fetching a single item? Or the stay consistent, we should simply do:
/blog/:blogid/comments/:commentid
It's hard.