Stateless Blog — JSON Linking with HAL
We need a general purpose media type, which extends JSON, that can be used as a standard way to represent a resource and its relations to other resources on the Web.
It’s very important, particularly because we are talking about JSON, that this media type be simple in its design. There are only three essential capabilities for representing resources that this media type needs deliver:
- Representing resource state
- Linking to other resources
- ‘Containment’ of embedded resources
HAL (application/hal+json) is a media type designed for this purpose, and here’s how it provides the above capabilities:
Read full article from Stateless Blog — JSON Linking with HAL
No comments:
Post a Comment