Browse Source

refactor: in bulk data api path use snake case

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

10
packages/nocodb/src/lib/noco/meta/api/dataApis/bulkDataAliasApis.ts

@ -91,23 +91,23 @@ async function getViewAndModelFromRequest(req) {
const router = Router({ mergeParams: true });
router.post(
'/api/v1/db/bulkData/:orgs/:projectName/:tableAlias',
'/api/v1/db/bulk-data/:orgs/:projectName/:tableAlias',
ncMetaAclMw(bulkDataInsert, 'bulkDataInsert')
);
router.patch(
'/api/v1/db/bulkData/:orgs/:projectName/:tableAlias',
'/api/v1/db/bulk-data/:orgs/:projectName/:tableAlias',
ncMetaAclMw(bulkDataUpdate, 'bulkDataUpdate')
);
router.patch(
'/api/v1/db/bulkData/:orgs/:projectName/:tableAlias/all',
'/api/v1/db/bulk-data/:orgs/:projectName/:tableAlias/all',
ncMetaAclMw(bulkDataUpdateAll, 'bulkDataUpdateAll')
);
router.delete(
'/api/v1/db/bulkData/:orgs/:projectName/:tableAlias',
'/api/v1/db/bulk-data/:orgs/:projectName/:tableAlias',
ncMetaAclMw(bulkDataDelete, 'bulkDataDelete')
);
router.delete(
'/api/v1/db/bulkData/:orgs/:projectName/:tableAlias/all',
'/api/v1/db/bulk-data/:orgs/:projectName/:tableAlias/all',
ncMetaAclMw(bulkDataDeleteAll, 'bulkDataDeleteAll')
);

4
scripts/sdk/swagger.json

@ -4494,7 +4494,7 @@
]
},
"/api/v1/db/bulkData/{orgs}/{projectName}/{tableName}/": {
"/api/v1/db/bulk-data/{orgs}/{projectName}/{tableName}/": {
"parameters": [
{
"schema": {
@ -4597,7 +4597,7 @@
]
}
},
"/api/v1/db/bulkData/{orgs}/{projectName}/{tableName}/all": {
"/api/v1/db/bulk-data/{orgs}/{projectName}/{tableName}/all": {
"parameters": [
{
"schema": {

Loading…
Cancel
Save