Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make PATCH request in Blocks Assistant boilerplate work like in Collabo Community API server #38

Open
2 tasks
samuko-things opened this issue Dec 16, 2024 · 0 comments

Comments

@samuko-things
Copy link

Issue description

Currently in the blocks-assistant-boilerplates the PATCH UPDATE request requires the request body to be in this format:

[
    {
        "propName":"name",
        "value": "string"
    },
    {
        "propName":"age",
        "value": number
    }
]

Instead, we want the PATCH UPDATE request to receive the request body in a single object format rather than an array of property-value format (just as is done in the Collabo Community API server ) as shown below:

{
     "name": string,
     "age": number,
}

Expected behavior

The PATCH UPDATE request should now receive the request body in a single object format rather than an array of property-value

Additional context

Testing checklist

Note (to contributor taking on this task assignment): Add the testing checklist below (without this note) to your pull request when submitting your fix. This will guide (you and) the contributors who will review your fix to know what is important to check or test for.

  • The PATCH UPDATE request now receives the request body in a single object format rather than an array of property-value
  • I certify that I ran my checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant