zfcampus/zf-hal — pull request #3 by TomHAnderson (2013-10-22 23:09:31+00:00)
Title: Do not render embedded resources

Add a flag to the plugin for whether to render embedded resources or just show their embed links.

While it's more expensive to retrieve resources individually the option of excluding embedded resources, besides solving the recursive problem with HAL, gives the developer a different way to build APIs and clients. With this an API client which creates a local resource for every resource and embedded resource may lazy load those embedded resources.

This should be extended to set the render_embedded_resources flag on individual resources but as-is works for what I currently have plans for.