Move ResourceResponse out of rest module

Created on 18 July 2022, over 2 years ago
Updated 4 August 2024, 4 months ago

Problem/Motivation

Drupal\rest\ResourceResponse is very useful for anyone doing JSON responses, because it allows cacheability.

However, it introduces a dependency on rest module.

Steps to reproduce

Proposed resolution

Not sure.

First attempts here were to move the class into Core-core (ie Drupal\Core\*).

However, ResourceResponse relies on ResourceResponseSubscriber to create the output, and that has a dependency on serialization module, so it can't do into Core-core.

Could ResourceResponse and ResourceResponseSubscriber be moved into serialization, to provide a generic way of returning data responses?

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 38 minutes ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024