Re:Use links not keys to represent relationships in APIs
by mpnally on Monday May 13, 2019 @08:02PM
(#19905359)
In the style of JSON I like to use, and whih GitHub and Google Drive use, the relationship name is given by the JSON name. So if you see 'owner: /person/12345', then 'owner' is the relationship name. There are other JSON styles for expressing the relationship name — the blog post mentions some of them. You might quibble about whether these names are the names of the relationship, or just names of one end of the relationship.
[ Parent
| on HN ]
There are no comments on this comment yet.