From ef572bb59ce598707d68f3aeff8eecb58f25836e Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:15:46 +0000 Subject: [PATCH] fix(nocodb): update swagger api --- .../nocodb/src/modules/metas/metas.module.ts | 1 + packages/nocodb/src/schema/swagger.json | 16 ++++++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/nocodb/src/modules/metas/metas.module.ts b/packages/nocodb/src/modules/metas/metas.module.ts index ed12b16860..92a038dd36 100644 --- a/packages/nocodb/src/modules/metas/metas.module.ts +++ b/packages/nocodb/src/modules/metas/metas.module.ts @@ -97,6 +97,7 @@ export const metaModuleMetadata = { AuditsController, SourcesController, CachesController, + CalendarsController, ColumnsController, FiltersController, FormColumnsController, diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index e75e2b3be8..c2818b3000 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -8351,7 +8351,7 @@ ] } }, - "/api/v1/db/meta/tables/{tableId}/calendar": { + "/api/v1/db/meta/tables/{tableId}/calendars": { "parameters": [ { "schema": { @@ -8442,7 +8442,7 @@ ] } }, - "/api/v1/db/meta/calendar/{calendarViewId}": { + "/api/v1/db/meta/calendars/{calendarViewId}": { "parameters": [ { "schema": { @@ -20457,20 +20457,16 @@ "title": "Calendar Date Range Model", "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/Id", - "description": "Unique ID" - }, "fk_from_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_to_column_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "description": "Foreign Key to Column" }, "fk_view_id": { - "$ref": "#/components/schemas/Id", + "$ref": "#/components/schemas/StringOrNull", "x-stoplight": { "id": "t1fy4zy561ih8" }, @@ -23849,7 +23845,7 @@ }, { "title": "My Calendar View", - "type": 4, + "type": 6, "copy_from_id": null, "fk_grp_col_id": null, "fk_geo_data_col_id": null,