News for hackers. Stuff that matters.
Re:How did REST come to mean the opposite of REST? by kelseyfrog on Tuesday July 19, 2022 @10:22AM (#32151908)
They are keyed using rels. You're right, they aren't relying on order; that would be terrible. And yes, JSON doesn't "have" rels. This is worked around by specifying a mimetype which does. Is it turtles all the way down? Yes, but not all turtles are equivalent. You should already be specifying a "Content-Type": application/json, it's not too much to change that to application/vnd.api+json and write a spec somewhere.

There are no comments on this comment yet.