JsonApi exposes the ResourceInfo type and functions to get useful information
for your resource decoders.
Returns the id of your resource.
From the json example above, id will return 13608770-76dd-47e5-a1c4-4d0d9c2483ad
Returns the links of your resource.
From the json example above, links will return a Dict with this value:
[ ("self", "http://link-to-user")
, ("profile", "http://link-to-user-profile")
]
The
ResourceInfois passed to your resource decoders. It contains useful information for decoding and for your resource, like your resourceidandlinks_Example of json api resource:_