Browse Source

refactor: shared form view nested list api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
655c1cebd5
  1. 6
      packages/nocodb-sdk/src/lib/Api.ts
  2. 4
      packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts
  3. 4
      scripts/sdk/swagger.json

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

@ -2971,7 +2971,7 @@ export class Api<
*
* @tags Public
* @name DataRelationList
* @request POST:/api/v1/db/public/shared-view/{sharedViewUuid}/rows/nested/{columnName}
* @request GET:/api/v1/db/public/shared-view/{sharedViewUuid}/nested/{columnName}
* @response `200` `any` OK
*/
dataRelationList: (
@ -2981,8 +2981,8 @@ export class Api<
params: RequestParams = {}
) =>
this.request<any, any>({
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/rows/nested/${columnName}`,
method: 'POST',
path: `/api/v1/db/public/shared-view/${sharedViewUuid}/nested/${columnName}`,
method: 'GET',
query: query,
format: 'json',
...params,

4
packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts

@ -319,8 +319,8 @@ router.get(
'/api/v1/db/public/shared-view/:sharedViewUuid/rows',
catchError(dataList)
);
router.post(
'/api/v1/db/public/shared-view/:sharedViewUuid/rows/nested/:columnId',
router.get(
'/api/v1/db/public/shared-view/:sharedViewUuid/nested/:columnId',
catchError(relDataList)
);
router.post(

4
scripts/sdk/swagger.json

@ -3695,7 +3695,7 @@
}
}
},
"/api/v1/db/public/shared-view/{sharedViewUuid}/rows/nested/{columnName}": {
"/api/v1/db/public/shared-view/{sharedViewUuid}/nested/{columnName}": {
"parameters": [
{
"schema": {
@ -3722,7 +3722,7 @@
"description": "Shared view password"
}
],
"post": {
"get": {
"summary": "",
"operationId": "public-data-relation-list",
"responses": {

Loading…
Cancel
Save