I'm returning a collections of items from a resource. I assemble a hal response using .withSubresource("echo", subRes) where I supply a relation of "echo". In each of my sub-resources, the self link relation is prefixed with the relation name I passed to .withSubresource(). ie "echo self".
I wasn't expecting this to be the case. Once I've traversed using _embedded.echo[0]._links, I was expecting to deal in standard link relation nomenclature, ie be able to use self, not have to know that I have to prefix the parent link relation name.
None of the examples that I've seen indicate this is expected...
http://blog.stateless.co/post/13296666138/json-linking-with-hal
Happy to accept I've missed the point so feel free to flame and clarify :-)
Thanks for the great work.
I'm returning a collections of items from a resource. I assemble a hal response using .withSubresource("echo", subRes) where I supply a relation of "echo". In each of my sub-resources, the self link relation is prefixed with the relation name I passed to .withSubresource(). ie "echo self".
I wasn't expecting this to be the case. Once I've traversed using _embedded.echo[0]._links, I was expecting to deal in standard link relation nomenclature, ie be able to use self, not have to know that I have to prefix the parent link relation name.
None of the examples that I've seen indicate this is expected...
http://blog.stateless.co/post/13296666138/json-linking-with-hal
Happy to accept I've missed the point so feel free to flame and clarify :-)
Thanks for the great work.