From 13b518e26b70320d09f5912352c7e50a9a874866 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 13 Oct 2022 12:22:09 +0530 Subject: [PATCH] fix(api): swagger - provide unique operation ids Signed-off-by: Pranav C --- .../src/lib/meta/api/swagger/helpers/templates/paths.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts b/packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts index 7c68edf73e..039690c3a8 100644 --- a/packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts +++ b/packages/nocodb/src/lib/meta/api/swagger/helpers/templates/paths.ts @@ -28,7 +28,7 @@ export const getModelPaths = async (ctx: { [`/api/v1/db/data/${ctx.orgs}/${ctx.projectName}/${ctx.tableName}`]: { get: { summary: `${ctx.tableName} list`, - operationId: 'db-table-row-list', + operationId: `${ctx.tableName.toLowerCase()}-db-table-row-list`, description: `List of all rows from ${ctx.tableName} ${ctx.type} and response data fields can be filtered based on query params.`, tags: [ctx.tableName], parameters: [ @@ -172,7 +172,7 @@ export const getModelPaths = async (ctx: { { get: { summary: `${ctx.tableName} find-one`, - operationId: 'db-table-row-find-one', + operationId: `${ctx.tableName.toLowerCase()}-db-table-row-find-one`, description: `Find first record matching the conditions.`, tags: [ctx.tableName], parameters: [fieldsParam, whereParam, sortParam],