News for hackers. Stuff that matters.
Re:Use links not keys to represent relationships in APIs by nebulous1 on Sunday May 12, 2019 @05:55AM (#19891024)
If I'm finding the invoice endpoint through the root instead of a link in the user, won't I need a uri template to know where to put the user id?
Re:Use links not keys to represent relationships in APIs by geezerjay on Tuesday May 14, 2019 @07:57AM (#19908677)
In REST you do not need URI templates. You discover the invoice collection endpoint through the root endpoint, and once you have a ID you can, say, query the invoice collection endpoint to get to the invoice.