3 ms·
One way to think about it might be to think of REST as RPC rather than folder nesting. E.g. `/[param_name]/[value]/..` So if you can find blogs just by their b
by jabbany 4y ago
One way to think about it might be to think of REST as RPC rather than folder nesting. E.g. `/[param_name]/[value]/..`
So if you can find blogs just by their blogId, then `/blogs/:blogId` makes sense since you only provide the necessary parameters.
`/organizations/:organizationId/blogs/:blogId` would imply that `blogId` is not unique across organizations. This may also make sense if that's how it is.