Browse Source

feat(nocodb-sdk): add public grouped data list

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
261db27ef1
  1. 22
      packages/nocodb-sdk/src/lib/Api.ts
  2. 61
      scripts/sdk/swagger.json

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

@ -3071,6 +3071,28 @@ export class Api<
}),
};
public = {
/**
* No description
*
* @tags Public
* @name GroupedDataList
* @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/group/{columnId}
* @response `200` `any` OK
*/
groupedDataList: (
sharedViewUuid: string,
columnId: string,
query?: { limit?: string; offset?: string },
params: RequestParams = {}
) =>
this.request<any, any>({
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/group/${columnId}`,
method: 'GET',
query: query,
format: 'json',
...params,
}),
/**
* No description
*

61
scripts/sdk/swagger.json

@ -4372,6 +4372,67 @@
]
}
},
"/api/v1/db/public/shared-view/{sharedViewUuid}/group/{columnId}": {
"parameters": [
{
"schema": {
"type": "string"
},
"name": "sharedViewUuid",
"in": "path",
"required": true
},
{
"schema": {
"type": "string"
},
"name": "columnId",
"in": "path",
"required": true
},
{
"schema": {
"type": "string"
},
"in": "header",
"name": "xc-password",
"description": "Shared view password"
}
],
"get": {
"summary": "",
"operationId": "public-grouped-data-list",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {}
}
}
}
},
"tags": [
"Public"
],
"parameters": [
{
"schema": {
"type": "string"
},
"in": "query",
"name": "limit"
},
{
"schema": {
"type": "string"
},
"in": "query",
"name": "offset"
}
]
}
},
"/api/v1/db/public/shared-view/{sharedViewUuid}/rows": {
"parameters": [
{

Loading…
Cancel
Save