Yamlsemanticerror: Map Keys Must Be Unique; “Post” Is Repeated. Nodjs Swagger (Swagger Supported By Smartbear)
0
I’m trying to create two post methods one for single insert and another for bulk insert but getting this error from swagger in NodeJs.
How to have two post methods in a single controller or is there any other way to pls suggest
# [POST] lookups post: tags: - lookups summary: Add lookups parameters: - name: body in: body description: lookups Data required: true schema: ref: '#/definitions/lookups' responses: 201: description: 'Created' 400: description: 'Bad Request' 409: description: 'Conflict' 500: description: 'Server Error'