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

Command icon 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

pratik_kamble created an issue. See original summary.

pratik_kamble’s picture

Assigned: pratik_kamble » Unassigned
Status: Active » Needs review

brianperry’s picture

Status: Needs review » Fixed

Merged. Created a follow up issue I discovered while testing: https://www.drupal.org/project/api_client/issues/3418939

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.