ChromaticHQ / jsonmonger

23 stars 1 forks source link

Use json:api’s /type/id/field_name URLs for fetching relationships #9

Open agarzola opened 6 years ago

agarzola commented 6 years ago

Currently, we’re using the ?include=field_name query string parameter format which is optional (currently available in Drupal’s JSON API module’s implementation), but not necessarily supported by all json:api implementations. Requests to /type/id/field_name and /type/id/relationships/field_name should be made in parallel to the main request.

This method should probably be the default, with the query string parameter method being an opt-in configuration parameter.