Skip to content

Commit

Permalink
update/add OpenAPI documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed Oct 9, 2023
1 parent 7a7ba14 commit a10f957
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions api/apps/api/src/modules/projects/projects.cloning.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export class ProjectCloningController {
) {}

@ImplementsAcl()
@ApiOperation({
description: `Request the preparation of a downloadable export for the project.`,
})
@ApiParam({
name: 'projectId',
description: 'ID of the Project',
Expand Down Expand Up @@ -110,6 +113,9 @@ export class ProjectCloningController {
}

@ImplementsAcl()
@ApiOperation({
description: `Request a clone of the project to be created.`,
})
@ApiParam({
name: 'projectId',
description: 'ID of the Project',
Expand Down Expand Up @@ -149,6 +155,9 @@ export class ProjectCloningController {
}

@ImplementsAcl()
@ApiOperation({
description: `Download a prepared export of the project.`,
})
@ApiParam({
name: 'projectId',
description: 'ID of the Project',
Expand Down Expand Up @@ -201,7 +210,7 @@ export class ProjectCloningController {

@ImplementsAcl()
@ApiOperation({
description: 'Returns the latest exportId of a given project',
description: 'Return the exportId of the most recently prepared export for a given project',
})
@ApiParam({
name: 'projectId',
Expand Down Expand Up @@ -235,7 +244,7 @@ export class ProjectCloningController {

@ImplementsAcl()
@ApiOperation({
description: 'Returns the latest exports for a given project',
description: 'List the latest exports for a given project',
})
@ApiParam({
name: 'projectId',
Expand Down Expand Up @@ -268,6 +277,9 @@ export class ProjectCloningController {
}

@ImplementsAcl()
@ApiOperation({
description: `Import a project from a downloaded export artifact.`,
})
@Post('import')
@ApiOkResponse({ type: RequestProjectImportResponseDto })
@ApiConsumes('multipart/form-data')
Expand Down

0 comments on commit a10f957

Please sign in to comment.