Browse Source

feat(sdk): add kanbanCreate, kanbanUpdate & kanbanRead

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
e7b556b49b
  1. 59
      packages/nocodb-sdk/src/lib/Api.ts
  2. 95
      scripts/sdk/swagger.json

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

@ -1895,6 +1895,65 @@ export class Api<
format: 'json', format: 'json',
...params, ...params,
}), }),
/**
* No description
*
* @tags DB view
* @name KanbanCreate
* @request POST:/api/v1/db/meta/tables/{tableId}/kanbans
* @response `200` `object` OK
*/
kanbanCreate: (
tableId: string,
data: KanbanType,
params: RequestParams = {}
) =>
this.request<object, any>({
path: `/api/v1/db/meta/tables/${tableId}/kanbans`,
method: 'POST',
body: data,
type: ContentType.Json,
format: 'json',
...params,
}),
/**
* No description
*
* @tags DB view
* @name KanbanUpdate
* @request PATCH:/api/v1/db/meta/kanbans/{kanbanId}
* @response `200` `void` OK
*/
kanbanUpdate: (
kanbanId: string,
data: KanbanType,
params: RequestParams = {}
) =>
this.request<void, any>({
path: `/api/v1/db/meta/kanbans/${kanbanId}`,
method: 'PATCH',
body: data,
type: ContentType.Json,
...params,
}),
/**
* No description
*
* @tags DB view
* @name KanbanRead
* @request GET:/api/v1/db/meta/kanbans/{kanbanId}
* @response `200` `KanbanType` OK
*/
kanbanRead: (kanbanId: string, params: RequestParams = {}) =>
this.request<KanbanType, any>({
path: `/api/v1/db/meta/kanbans/${kanbanId}`,
method: 'GET',
format: 'json',
...params,
}),
}; };
dbViewShare = { dbViewShare = {
/** /**

95
scripts/sdk/swagger.json

@ -2506,6 +2506,99 @@
] ]
} }
}, },
"/api/v1/db/meta/tables/{tableId}/kanbans": {
"parameters": [
{
"schema": {
"type": "string"
},
"name": "tableId",
"in": "path",
"required": true
}
],
"post": {
"summary": "",
"operationId": "db-view-kanban-create",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {}
}
}
}
}
},
"tags": [
"DB view"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Kanban"
}
}
}
}
}
},
"/api/v1/db/meta/kanbans/{kanbanId}": {
"parameters": [
{
"schema": {
"type": "string"
},
"name": "kanbanId",
"in": "path",
"required": true
}
],
"patch": {
"summary": "",
"operationId": "db-view-kanban-update",
"responses": {
"200": {
"description": "OK"
}
},
"tags": [
"DB view"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Kanban"
}
}
}
}
},
"get": {
"summary": "",
"operationId": "db-view-kanban-read",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Kanban"
}
}
}
}
},
"tags": [
"DB view"
]
}
},
"/api/v1/db/meta/projects/{projectId}/meta-diff": { "/api/v1/db/meta/projects/{projectId}/meta-diff": {
"parameters": [ "parameters": [
{ {
@ -7145,7 +7238,7 @@
} }
}, },
"GridColumn": { "GridColumn": {
"title": "GalleryColumn", "title": "GridColumn",
"type": "object", "type": "object",
"description": "", "description": "",
"properties": { "properties": {

Loading…
Cancel
Save