Problem/Motivation

Since JSON API will be target to 8.4.x, and the development is going quite good, I feel the need to support JSON API, since this module is involve quite a lot with paragraphs, and paragraphs is wild know now days.

Proposed resolution

Provide the patch to support JSON API

Remaining tasks

Write the patch, review, talk, fail, write more patchs, accept it.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

killua99 created an issue. See original summary.

killua99’s picture

Let's start with a simple patch with the test in there.

miro_dietiker’s picture

Status: Active » Needs review

Glad to see tests!!! :-) I guess it won't pass since core isn't ready yet.

Can you please link the core issue that brings the feature so we could then postpone on it once we feel ready?

Status: Needs review » Needs work

The last submitted patch, 2: 2850329-supp-jsonapi-2.patch, failed testing.

killua99’s picture

Sure. I'll try to support for the current core. Maybe I've to write the same Class inside the Contrib module JSON API.

killua99’s picture

For now I've an Error with the current 8.2.x

Error</em>: Call to a member function getRevisionId() on null in

I can create a normal Paragraph, but I can't reference any entity to my Entity Reference Revisions. The relationship fails somewhere.

voleger’s picture

@killua99
There is the patch that will fix that error. I attached related issue.