Browse Source

feat(sdk): add api in swagger json

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4630/head
Pranav C 2 years ago
parent
commit
1a975db018
  1. 3
      packages/nocodb-sdk/src/lib/Api.ts
  2. 6
      scripts/sdk/swagger.json

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

@ -124,6 +124,7 @@ export interface TableType {
columnsById?: object; columnsById?: object;
slug?: string; slug?: string;
mm?: boolean | number; mm?: boolean | number;
meta?: any;
} }
export interface ViewType { export interface ViewType {
@ -175,6 +176,7 @@ export interface TableReqType {
order?: number; order?: number;
mm?: boolean; mm?: boolean;
columns: ColumnType[]; columns: ColumnType[];
meta?: any;
} }
export interface TableListType { export interface TableListType {
@ -2159,6 +2161,7 @@ export class Api<
table_name?: string; table_name?: string;
title?: string; title?: string;
project_id?: string; project_id?: string;
meta?: any;
}, },
params: RequestParams = {} params: RequestParams = {}
) => ) =>

6
scripts/sdk/swagger.json

@ -1971,6 +1971,8 @@
}, },
"project_id": { "project_id": {
"type": "string" "type": "string"
},
"meta": {
} }
} }
} }
@ -7484,6 +7486,8 @@
"boolean", "boolean",
"number" "number"
] ]
},
"meta": {
} }
}, },
"required": [ "required": [
@ -7823,6 +7827,8 @@
"items": { "items": {
"$ref": "#/components/schemas/Column" "$ref": "#/components/schemas/Column"
} }
},
"meta": {
} }
}, },
"required": [ "required": [

Loading…
Cancel
Save