OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

Multiple operations under one HTTP method

Open tarunendra opened this issue 9 years ago • 2 comments

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.

tarunendra avatar Jan 23 '17 23:01 tarunendra

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

webron avatar Jan 23 '17 23:01 webron

Thanks..

tarunendra avatar Jan 23 '17 23:01 tarunendra