Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Use links not keys to represent relationships in APIs. Parent comment
However, you can have it both ways: in the customer response, use
"invoices": "/customer/7sn2J/invoices"
There are no comments on this comment yet.
However, you can have it both ways: in the customer response, use
and have the server 307 redirect to "/invoices?customer=7sn2J", or whatever you prefer.