News for hackers. Stuff that matters.
Re:Use links not keys to represent relationships in APIs by randallsquared on Sunday May 12, 2019 @09:28AM (#19891751)
An API should usually prioritize ease of development over faithfully exposing database or architecture internals.

However, you can have it both ways: in the customer response, use

    "invoices": "/customer/7sn2J/invoices"
and have the server 307 redirect to "/invoices?customer=7sn2J", or whatever you prefer.

There are no comments on this comment yet.