mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-18 18:14:47 +00:00
FEAT: update deleteTable endpoint to use pipelineId in path and refactor parameters
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user