Skip to content

3398408: Adds support for create resource in json api client.

  1. Adds support for create resource in json api client.
  2. Adds test cases for create resource method in json api client

Example:

const success = await jsonApiClient.createResource("node--page", `{
  "data": {
    "type": "node--page",
    "attributes": {
      "title": "My custom title",
      "body": {
        "value": "Custom value 2",
        "format": "plain_text"
      }
    }
  }
}
`)
Edited by Pratik Kamble

Merge request reports