Hateoas
Hateoas copied to clipboard
HAL implementation
http://stateless.co/hal_specification.html
Representing Multiple Links With The Same Relation
A resource may have multiple links that share the same link relation. For link relations that may have multiple links, we use an array of links.
The issue is that there is currently no way to tell the library whether a relation is supposed to have multiple or only 1 link.
See https://github.com/willdurand/Hateoas/blob/master/src/Hateoas/Serializer/JsonHalSerializer.php#L26-L33
+1 ...
:+1: