diff --git a/docsfera.json b/docsfera.json index 29f2ff3..fc5e27b 100644 --- a/docsfera.json +++ b/docsfera.json @@ -4705,11 +4705,19 @@ ] } }, - "/platform/inputs/{inputId}/tables/{tableName}": { + "/platform/pipelines/{pipelineId}/inputs/{inputId}": { "delete": { "operationId": "PlatformApiController_deleteTable", "summary": "Mark a table as deleted and delete its associated job via platform-api", "parameters": [ + { + "name": "pipelineId", + "required": true, + "in": "path", + "schema": { + "type": "string" + } + }, { "name": "inputId", "required": true, @@ -4717,22 +4725,6 @@ "schema": { "type": "string" } - }, - { - "name": "tableName", - "required": true, - "in": "path", - "schema": { - "type": "string" - } - }, - { - "name": "pipelineId", - "required": true, - "in": "query", - "schema": { - "type": "string" - } } ], "responses": { diff --git a/src/modules/platform-api/platform-api.controller.ts b/src/modules/platform-api/platform-api.controller.ts index 9e5419c..5fd0b94 100644 --- a/src/modules/platform-api/platform-api.controller.ts +++ b/src/modules/platform-api/platform-api.controller.ts @@ -965,15 +965,16 @@ export class PlatformApiController { ); } - @Delete('inputs/:inputId/tables/:tableName') + @Delete('pipelines/:pipelineId/inputs/:inputId') @ApiOperation({ summary: 'Mark a table as deleted and delete its associated job via platform-api' }) @RequireAllPermissions(PERMISSIONS_GROUPS.PIPELINE.permissions.DELETE) async deleteTable( + @Param('pipelineId') pipelineId: string, @Param('inputId') inputId: string, - @Param('tableName') tableName: string, - @Query('pipelineId') pipelineId: string, + @Body() body: { table_name: string }, @User() user: RequestUser, ) { + const tableName = body.table_name; const info = { customer_id: user.customer_id, customer: user.customer_name,