Active
Project:
JSON:API
Version:
8.x-2.4
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2020 at 18:29 UTC
Updated:
27 Jun 2020 at 18:29 UTC
Jump to comment: Most recent
The consumer has the different payload structure which they are posting on endpoint for e.g "api/node/article" but drupal doesn't supports that structure as it only accepts the below structure:
{
"data": {
"type": "node--article",
"attributes": {
"title": "My custom title",
"body": {
"value": "Custom value",
"format": "plain_text"
}
}
}
}
Does anybody know how to normalize the posted request & create the entities based on that? any help would be appreciated.
Thanks, Dinesh
Comments