From 253a3b1fecab3108d4b8c8cc3c3b571b93b48c9b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 29 Apr 2022 19:57:05 +0800 Subject: [PATCH] chore: rm CreateByExcel API --- packages/nocodb-sdk/src/lib/Api.ts | 33 --------------- scripts/sdk/swagger.json | 68 ------------------------------ 2 files changed, 101 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 3ca7adba17..ee6bb65487 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -1204,39 +1204,6 @@ export class Api< ...params, }), - /** - * @description Create Project by Importing Excel File - * - * @tags Project - * @name CreateByExcel - * @summary Project create - * @request POST:/api/v1/db/meta/projects/import/excel - * @response `200` `ProjectType` OK - */ - createByExcel: ( - data: { - title?: string; - projectType?: string; - template?: { - title?: string; - tables?: { - table_name?: string; - ref_table_name?: string; - columns?: object[]; - }[]; - }; - }, - params: RequestParams = {} - ) => - this.request({ - path: `/api/v1/db/meta/projects/import/excel`, - method: 'POST', - body: data, - type: ContentType.Json, - format: 'json', - ...params, - }), - /** * @description Read project details * diff --git a/scripts/sdk/swagger.json b/scripts/sdk/swagger.json index 8ce379b025..091505e9a9 100644 --- a/scripts/sdk/swagger.json +++ b/scripts/sdk/swagger.json @@ -801,74 +801,6 @@ ] } }, - "/api/v1/db/meta/projects/import/excel": { - "parameters": [], - "post": { - "summary": "Project create", - "operationId": "project-create-by-excel", - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Project" - } - } - } - } - }, - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "projectType": { - "type": "string" - }, - "template": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "tables": { - "type": "array", - "items": { - "type": "object", - "properties": { - "table_name": { - "type": "string" - }, - "ref_table_name": { - "type": "string" - }, - "columns": { - "type": "array", - "items": { - "type": "object" - } - } - } - } - } - } - } - } - } - } - } - }, - "tags": [ - "Project" - ], - "description": "Create Project by Importing Excel File" - } - }, "/api/v1/db/meta/projects/{projectId}": { "parameters": [ {