3398408: Adds support for create resource in json api client.
- Adds support for create resource in json api client.
- 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