Initial request shows complete response on an included field, consecutive request shows incomplete response (/jsonapi/user/user)

Created on 16 November 2024, about 1 month ago

Problem/Motivation

The initial request to a JSON API resource that is overwritten shows full response (complete data) but consecutive request will show the default state of the API resource... also, when updating a content in the CMS, this response sequence will repeat again which is odd

This is a problem because the website is using the included field as a dependency especially for getting the initial data. for the user

Steps to reproduce

  1. Select a resource in the JSON API extra configuration (/admin/config/services/jsonapi/resource_types)
  2. Override a resource and include a field in the "Default include list"
  3. Save the resource
  4. Access the JSON API path and verify the response (GET request)
  5. Verify the initial response would be the overwritten resource with complete data
  6. Access the API again and it will show the default state of the resource
🐛 Bug report
Status

Active

Version

3.26

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024