Header with Json:include is always Hateoas header

Created on 15 October 2024, 6 months ago

Problem/Motivation

Hi

When my api is consume by Spring or another services their security process check header response. But when you use Json:include module the header return is always Hateoas one. Witch is not normal besause the format change.

Steps to reproduce

Explore your response header, you will find
"application/vnd.api+json" as a header for content type.

Proposed resolution

The proposal can be to override response when we have to override/parse response, in Subscriber file specificaly when we pass condition need_parse lign 101. Perhapse their is a better place to override reponse header but I don't see it.

$response->setHeader('Content-Type', 'application/json');

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.8

Component

Code

Created by

πŸ‡«πŸ‡·France Mars0test

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024