From 414731dea48d6406335a940e97a659244044d0b2 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 27 Nov 2024 17:44:30 -0800 Subject: [PATCH] model each action with its own request --- openapi.yaml | 154 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 8aac28b..9618079 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -173,6 +173,160 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/revoke: + patch: + summary: Role Submitter changes status from Submitted|ChangesRequested -> UnderConstruction + operationId: actionSubmissionRevoke + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/trigger-validate: + patch: + summary: Role Reviewer triggers validation and changes status from Submitted|Accepted -> Validating + operationId: actionSubmissionTriggerValidate + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/reject: + patch: + summary: Role Reviewer changes status from Submitted -> Rejected + operationId: actionSubmissionReject + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/request-changes: + patch: + summary: Role Reviewer changes status from Validated|Accepted|Submitted -> ChangesRequested + operationId: actionSubmissionRequestChanges + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/validate: + patch: + summary: Role Validator changes status from Validating -> Validated + operationId: actionSubmissionValidate + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/publish: + patch: + summary: Role Validator changes status from Publishing -> Published + operationId: actionSubmissionPublish + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" + /submissions/{SubmissionID}/status/trigger-publish: + patch: + summary: Role Admin changes status from Validated -> Publishing + operationId: actionSubmissionTriggerPublish + tags: + - Submissions + parameters: + - name: SubmissionID + in: path + required: true + schema: + type: integer + format: int64 + responses: + "200": + description: Successful response + default: + description: General Error + content: + application/json: + schema: + $ref: "#/components/schemas/Error" components: schemas: Id: