OpenAPI-Specification
OpenAPI-Specification copied to clipboard
Multiple operations under one HTTP method
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.
Well, the spec is opinionated, and we do suggest taking advantage of the HTTP verbs. So, POST for create, PUT/PATCH for update.
Thanks..