You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
halRepresenter(function(hal,entity){varres={};hal.links(res,[aResource,// Use the resource's name for rel, and the resource's path{'rel': anotherResource}// Custom rel]);hal.embedded(res,{posts: posts});returnres;});
I <3 HAL and I use it a lot. Instead of having to manually create "links" and "embedded", it could be useful to have a representation strategy for it.
The text was updated successfully, but these errors were encountered: