Browse Source

fix: provide unique operation id in swagger json

re #897

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/914/head
Pranav C 3 years ago
parent
commit
5f4043febe
  1. 8
      packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts

8
packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts

@ -358,9 +358,9 @@ class SwaggerXc extends BaseRender {
}, },
put: { put: {
tags: [`${this.ctx._tn}`], tags: [`${this.ctx._tn}`],
summary: `Updates a ${this.ctx._tn}`, summary: `Bulk ${this.ctx._tn} update`,
description: '', description: '',
operationId: `update${this.ctx._tn}`, operationId: `bulk${this.ctx._tn}Update`,
consumes: ['application/json'], consumes: ['application/json'],
produces: ['application/json'], produces: ['application/json'],
parameters: [ parameters: [
@ -385,9 +385,9 @@ class SwaggerXc extends BaseRender {
}, },
delete: { delete: {
tags: [`${this.ctx._tn}`], tags: [`${this.ctx._tn}`],
summary: `Deletes a ${this.ctx._tn}`, summary: `Bulk ${this.ctx._tn} delete`,
description: '', description: '',
operationId: `delete${this.ctx._tn}`, operationId: `bulk${this.ctx._tn}Delete`,
produces: ['application/json'], produces: ['application/json'],
parameters: [ parameters: [
{ {

Loading…
Cancel
Save