Skip to content

Operations with a body and no verb will default route to POST - #802

Merged
David Wilson (daviwil) merged 1 commit into
microsoft:mainfrom
daviwil:post-no-body
Aug 1, 2022
Merged

Operations with a body and no verb will default route to POST#802
David Wilson (daviwil) merged 1 commit into
microsoft:mainfrom
daviwil:post-no-body

Conversation

@daviwil

Copy link
Copy Markdown
Contributor

This PR fixes #766 by defaulting any operation with a body and no verb to POST.

@azure-pipelines

Copy link
Copy Markdown

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/802/

@daviwil
David Wilson (daviwil) merged commit 0e3dac8 into microsoft:main Aug 1, 2022
@daviwil
David Wilson (daviwil) deleted the post-no-body branch August 1, 2022 15:54
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.

Default to post when body is present and no verb is specified

2 participants