Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/server/swagger/parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ components:
schema:
type: string
required: true
ForceDeleteSubmission:
description: Optional query parameter to force the deletion of a submission. Default value is false
name: force
in: query
schema:
type: boolean
required: false
Comment on lines +39 to +45
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flag added to the DELETE submission endpoint.

OnlyActive:
description: Optional query parameter to filter results to include only active submissions. Default value is false
name: onlyActive
Expand Down
7 changes: 2 additions & 5 deletions apps/server/swagger/submission-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
tags:
- Submission
parameters:
- name: submissionId
in: path
type: string
required: true
- $ref: '#/components/parameters/path/SubmissionId'
- $ref: '#/components/parameters/query/ForceDeleteSubmission'
responses:
200:
description: Submission closed successfully
Expand Down Expand Up @@ -320,7 +318,6 @@
503:
$ref: '#/components/responses/ServiceUnavailableError'


/submission/category/{categoryId}/data/{systemId}:
delete:
summary: Removes data from a submission using the System ID. Returns an Active Submission containing the records that will be deleted
Expand Down
1 change: 1 addition & 0 deletions packages/data-model/docs/schema.dbml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ enum audit_action {

enum submission_status {
OPEN
VALIDATING
VALID
INVALID
CLOSED
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TYPE "submission_status" ADD VALUE 'VALIDATING';
Loading