Browse Source

fix: set default view id value and update description

pull/6982/head
Pranav C 1 year ago
parent
commit
f59b966a6c
  1. 5
      packages/nocodb/src/services/api-docs/swaggerV2/templates/params.ts

5
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',

Loading…
Cancel
Save