Currently body param updateResource and createResource method supports only string type. It should support object parameter as well
New signature should like below.
createResource(
type: EntityTypeWithBundle,
body: string | object,
): Promise<Response>
updateResource(
type: EntityTypeWithBundle,
resourceId: string,
body: string | object,
): Promise<Response>
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork api_client-3418815
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pratik_kambleComment #5
brianperryMerged. Created a follow up issue I discovered while testing: https://www.drupal.org/project/api_client/issues/3418939