Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Nested Resources in REST/HTTP API URLs?. Parent comment
> - /organizations/123/blogs/1234 -> /blogs/1234
And:
/organizations/123/blogs -> /blogs?organization_id=123
Because what you're doing is just applying a filter to an index of blog resources.
I.e. the "/organizations/123/blogs" route is simply an alias to "/blogs?organization_id=123" which you can just redirect to in your gateway.
There are no comments on this comment yet.
> - /organizations/123/blogs/1234 -> /blogs/1234
And:
/organizations/123/blogs -> /blogs?organization_id=123
Because what you're doing is just applying a filter to an index of blog resources.
I.e. the "/organizations/123/blogs" route is simply an alias to "/blogs?organization_id=123" which you can just redirect to in your gateway.