feat(fullstack): Add application form status, add submissions of forms, update DB schema
This commit is contained in:
@@ -193,6 +193,37 @@ paths:
|
||||
"503":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
|
||||
|
||||
/application-forms/{id}/submit:
|
||||
post:
|
||||
summary: Submit an application form
|
||||
operationId: submitApplicationForm
|
||||
tags:
|
||||
- application-form
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
"200":
|
||||
description: Application form successfully submitted
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ApplicationFormDto"
|
||||
"400":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/BadRequest"
|
||||
"401":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/Unauthorized"
|
||||
"404":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/NotFound"
|
||||
"500":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServerError"
|
||||
"503":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
|
||||
|
||||
####### Application Form Templates #######
|
||||
/application-form-templates:
|
||||
get:
|
||||
@@ -672,6 +703,7 @@ components:
|
||||
- lastModifiedBy
|
||||
- createdAt
|
||||
- modifiedAt
|
||||
- status
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
@@ -696,6 +728,8 @@ components:
|
||||
modifiedAt:
|
||||
type: string
|
||||
format: date-time
|
||||
status:
|
||||
$ref: "#/components/schemas/ApplicationFormStatus"
|
||||
|
||||
CreateApplicationFormDto:
|
||||
required:
|
||||
@@ -715,6 +749,9 @@ components:
|
||||
default: false
|
||||
organizationId:
|
||||
type: string
|
||||
status:
|
||||
$ref: "#/components/schemas/ApplicationFormStatus"
|
||||
default: DRAFT
|
||||
|
||||
PagedApplicationFormDto:
|
||||
type: object
|
||||
@@ -1009,6 +1046,15 @@ components:
|
||||
- WARNING
|
||||
- CRITICAL
|
||||
|
||||
ApplicationFormStatus:
|
||||
type: string
|
||||
enum:
|
||||
- DRAFT
|
||||
- SUBMITTED
|
||||
- APPROVED
|
||||
- REJECTED
|
||||
- SIGNED
|
||||
|
||||
####### Supporting components #######
|
||||
Page:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user