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

Loading…
Cancel
Save