Problem/Motivation

Based on a similar approach already implemented in jsonapi_include, make use of jsonapi_auto_include query parameter optional for jsonapi_auto_include module also.

Proposed resolution

Add a flag to opt-in for using ?jsonapi_auto_include=1 query parameter.
- If flag is disabled, all relationships will be included in JSON:API response.
- If flag is enabled, relationships will be included only when url has ?jsonapi_auto_include=1

config form

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sumit saini created an issue. See original summary.

sumit saini’s picture

Assigned: sumit saini » Unassigned
Status: Active » Needs review

Added required changes. MR is ready to review.

harsh’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed and tested the feature, looks good to me. Moving it to RTBC.