RESTful Web Services Entity Reference
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
This module provides recursive, secure loading of Entity references, configurable by entity type and depth. The structure of referenced data is determined by the format classes provided by RESTful Web Services, so no special logic is needed to consume referenced vs top-level entities.
Requirements
Usage
The parameter "load-entity-refs" must be present in the URL for recursive references to work:
http://example.com/<entity type>/<entity id>.json?load-entity-refs
The loaded references may be further customized based on entity type and maximum recursion depth (currently up to 3):
http://example.com/<entity type>/<entity id>.json?load-entity-refs=node&max-depth=2
Specify multiple entity types by separating with commas:
http://example.com/<entity type>/<entity id>.json?load-entity-refs=node,user
Entity Types
- node
- comment
- file
- taxonomy_term
- taxonomy_vocabulary
- user
RESTful Web Services Image Styles
This is an optional sub-module that adds all absolute image style URLs to image file entities under a new field, "image_style_urls". This allows the desired image style to be easily requested based on a REST API call, instead of only the original image as provided by RESTful Web Services out of the box.
The sub-module has no configuration and can simply be enabled or disabled as desired.
