Skip to content

feat(api-rest): support "body" in delete API #14462

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

Merged
merged 4 commits into from
Jul 10, 2025
Merged

feat(api-rest): support "body" in delete API #14462

merged 4 commits into from
Jul 10, 2025

Conversation

Simone319
Copy link
Contributor

Description of changes

Currently, Amplify's REST API implementation doesn't support request/response body with DELETE operations. However, while not common, DELETE requests/responses with a body are valid according to HTTP specifications and are used in some API designs(ref).

This change adds support for REST DELETE API request and response bodies.

Issue #, if available

Description of how you validated changes

Verify the change manually.
Run e2e tests successfully via github action: https://github.com/aws-amplify/amplify-js/actions/runs/16173637343

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced) -> for this change, the API doc will be updated automatically during release.

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Simone319 Simone319 requested a review from a team as a code owner July 9, 2025 16:41
@Simone319 Simone319 changed the title Fix/delete body feat(api-rest): support "body" in delete API Jul 9, 2025
@Simone319 Simone319 merged commit d6f1422 into main Jul 10, 2025
30 checks passed
@Simone319 Simone319 deleted the fix/delete-body branch July 10, 2025 09:24
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

Successfully merging this pull request may close these issues.

3 participants