Skip to content

Multiple operations under one HTTP method #868

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

Closed
tarunendra opened this issue Jan 23, 2017 · 2 comments
Closed

Multiple operations under one HTTP method #868

tarunendra opened this issue Jan 23, 2017 · 2 comments

Comments

@tarunendra
Copy link

tarunendra commented Jan 23, 2017

Hi, Swagger doesn't allow to create multiple operations under one HTTP method.

How to handle use case where you need to create two operations like createCustomer and updateCustomer and both are suppose to use POST HTTP method.

@webron
Copy link
Member

webron commented Jan 23, 2017

Well, the spec is opinionated, and we do suggest taking advantage of the HTTP verbs. So, POST for create, PUT/PATCH for update.

@tarunendra
Copy link
Author

Thanks..

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

2 participants