From f59b966a6caf2fd6fcc8ad7f13f8dd2f71a78c92 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 16 Nov 2023 07:52:30 +0000 Subject: [PATCH] fix: set default view id value and update description --- .../src/services/api-docs/swaggerV2/templates/params.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts b/packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts index 46df2dc15d..67070aa585 100644 --- a/packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts +++ b/packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts @@ -112,7 +112,9 @@ export const linkFieldNameParam = (columns: SwaggerColumn[]) => { }; export const viewIdParams = (views: SwaggerView[]) => { const viewIds = []; - const description = ['Views:']; + const description = [ + 'Allows you to fetch records that are currently visible within a specific view.\n\nViews:', + ]; for (const { view } of views) { viewIds.push(view.id); @@ -123,6 +125,7 @@ export const viewIdParams = (views: SwaggerView[]) => { schema: { type: 'string', enum: viewIds, + default: viewIds[0], }, description: description.join('\n'), name: 'viewId',