News for hackers. Stuff that matters.
Re:Best practices for REST API design (2020) by saila on Monday February 22, 2021 @04:14PM (#26230728)
Interesting. I usually find it easier to generate URLs on the server and more convenient to consume APIs that include links to related resources.

The other option is munging URLs on the client side, which can be tedious.

I'm genuinely curious as to how including links in the response could make an API harder or more annoying to use.

Re:Best practices for REST API design (2020) by firebaze on Monday February 22, 2021 @04:43PM (#26231057)
You have to know how to parse the response. This usually requires to know what you will receive, which limits the usefulness of generic link responses somehow