Browse Source

refactor: update path

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5901/head
Pranav C 1 year ago
parent
commit
ffde216556
  1. 6
      packages/noco-docs/content/en/developer-resources/rest-apis.md
  2. 6
      packages/nocodb/src/controllers/data-table.controller.ts
  3. 2
      packages/nocodb/src/schema/swagger.json

6
packages/noco-docs/content/en/developer-resources/rest-apis.md

@ -76,9 +76,9 @@ Currently, the default value for {orgs} is <b>noco</b>. Users will be able to ch
| Data | Get | dbViewRow | groupedDataList | /api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/group/{columnId} | | Data | Get | dbViewRow | groupedDataList | /api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/group/{columnId} |
| Data | Get | dbTableRow | tableRowList | /api/v1/base/{baseId}/tables/{tableId} | | Data | Get | dbTableRow | tableRowList | /api/v1/base/{baseId}/tables/{tableId} |
| Data | Post | dbTableRow | tableRowCreate | /api/v1/base/{baseId}/tables/{tableId} | | Data | Post | dbTableRow | tableRowCreate | /api/v1/base/{baseId}/tables/{tableId} |
| Data | Get | dbTableRow | tableRowRead | /api/v1/db/tables/{tableId}/rows/{rowId} | | Data | Get | dbTableRow | tableRowRead | /api/v1/base/tables/{tableId}/rows/{rowId} |
| Data | Patch | dbTableRow | tableRowUpdate | /api/v1/db/tables/{tableId}/rows/{rowId} | | Data | Patch | dbTableRow | tableRowUpdate | /api/v1/base/tables/{tableId}/rows/{rowId} |
| Data | Delete| dbTableRow | tableRowDelete | /api/v1/db/tables/{tableId}/rows/{rowId} | | Data | Delete| dbTableRow | tableRowDelete | /api/v1/base/tables/{tableId}/rows/{rowId} |
| Data | Get | dbTableRow | tableRowCount | /api/v1/base/{baseId}/tables/{tableId}/count | | Data | Get | dbTableRow | tableRowCount | /api/v1/base/{baseId}/tables/{tableId}/count |
### Meta APIs ### Meta APIs

6
packages/nocodb/src/controllers/data-table.controller.ts

@ -85,7 +85,7 @@ export class DataTableController {
}); });
} }
@Patch(['/api/v1/db/tables/:modelId/rows/:rowId']) @Patch(['/api/v1/base/tables/:modelId/rows/:rowId'])
@Acl('dataUpdate') @Acl('dataUpdate')
async dataUpdate( async dataUpdate(
@Request() req, @Request() req,
@ -102,7 +102,7 @@ export class DataTableController {
}); });
} }
@Delete(['/api/v1/db/tables/:modelId/rows/:rowId']) @Delete(['/api/v1/base/tables/:modelId/rows/:rowId'])
@Acl('dataDelete') @Acl('dataDelete')
async dataDelete( async dataDelete(
@Request() req, @Request() req,
@ -118,7 +118,7 @@ export class DataTableController {
}); });
} }
@Get(['/api/v1/db/tables/:modelId/rows/:rowId']) @Get(['/api/v1/base/tables/:modelId/rows/:rowId'])
@Acl('dataRead') @Acl('dataRead')
async dataRead( async dataRead(
@Request() req, @Request() req,

2
packages/nocodb/src/schema/swagger.json

@ -14263,7 +14263,7 @@
} }
} }
}, },
"/api/v1/db/tables/{tableId}/rows/{rowId}": { "/api/v1/base/tables/{tableId}/rows/{rowId}": {
"parameters": [ "parameters": [
{ {
"schema": { "schema": {

Loading…
Cancel
Save