Browse Source

chore: rm CreateByExcel API

pull/1931/head
Wing-Kam Wong 3 years ago
parent
commit
253a3b1fec
  1. 33
      packages/nocodb-sdk/src/lib/Api.ts
  2. 68
      scripts/sdk/swagger.json

33
packages/nocodb-sdk/src/lib/Api.ts

@ -1204,39 +1204,6 @@ export class Api<
...params, ...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<ProjectType, any>({
path: `/api/v1/db/meta/projects/import/excel`,
method: 'POST',
body: data,
type: ContentType.Json,
format: 'json',
...params,
}),
/** /**
* @description Read project details * @description Read project details
* *

68
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}": { "/api/v1/db/meta/projects/{projectId}": {
"parameters": [ "parameters": [
{ {

Loading…
Cancel
Save