News for hackers. Stuff that matters.
Re:Use links not keys to represent relationships in APIs by mpnally on Monday May 13, 2019 @04:27PM (#19903591)
If some parts of your API used database keys as identifiers and other parts used URLs, then I can see that could be confusing. All one or all the other would probably be better.
Re:Use links not keys to represent relationships in APIs by whack on Tuesday May 14, 2019 @09:49PM (#19915682)
Anytime you're interacting with the database, you'll need to use database keys. Anytime you're interacting at the API interface level, you'll need URLs. Anything in the middle is then going to be a gray area, especially when you have multiple people working on this implementation together.