feat(fullstack): Add contact form
This commit is contained in:
@@ -1169,6 +1169,29 @@ paths:
|
||||
"500":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServerError"
|
||||
|
||||
####### Contact #######
|
||||
/contact:
|
||||
post:
|
||||
summary: Send a contact message
|
||||
operationId: sendContactMessage
|
||||
tags:
|
||||
- contact
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ContactMessageDto"
|
||||
responses:
|
||||
"204":
|
||||
description: Contact message sent successfully
|
||||
"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"
|
||||
"500":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServerError"
|
||||
|
||||
/application-forms/{applicationFormId}/files:
|
||||
parameters:
|
||||
- name: applicationFormId
|
||||
@@ -2044,6 +2067,22 @@ components:
|
||||
- WARNING
|
||||
- ERROR
|
||||
|
||||
####### Contact DTOs #######
|
||||
ContactMessageDto:
|
||||
type: object
|
||||
required:
|
||||
- subject
|
||||
- message
|
||||
properties:
|
||||
subject:
|
||||
type: string
|
||||
minLength: 1
|
||||
description: Subject of the contact message
|
||||
message:
|
||||
type: string
|
||||
minLength: 1
|
||||
description: HTML body of the contact message
|
||||
|
||||
####### File Upload DTOs #######
|
||||
UploadedFileDto:
|
||||
type: object
|
||||
|
||||
Reference in New Issue
Block a user