feat(#12): Add subsections to sections, fix version deletion after update
This commit is contained in:
@@ -224,10 +224,10 @@ paths:
|
||||
"503":
|
||||
$ref: "https://api.swaggerhub.com/domains/smartbear-public/ProblemDetails/1.0.0#/components/responses/ServiceUnavailable"
|
||||
|
||||
/application-forms/{applicationFormId}/sections/{sectionId}/form-elements:
|
||||
/application-forms/{applicationFormId}/subsections/{subsectionId}/form-elements:
|
||||
post:
|
||||
summary: Add a new form element to a specific section
|
||||
operationId: addFormElementToSection
|
||||
summary: Add a new form element to a specific subsection
|
||||
operationId: addFormElementToSubSection
|
||||
tags:
|
||||
- application-form
|
||||
parameters:
|
||||
@@ -238,13 +238,13 @@ paths:
|
||||
type: string
|
||||
format: uuid
|
||||
description: The ID of the application form
|
||||
- name: sectionId
|
||||
- name: subsectionId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
description: The ID of the form element section
|
||||
description: The ID of the form element subsection
|
||||
- name: position
|
||||
in: query
|
||||
required: true
|
||||
@@ -1215,7 +1215,7 @@ components:
|
||||
required:
|
||||
- id
|
||||
- title
|
||||
- formElements
|
||||
- formElementSubSections
|
||||
- applicationFormId
|
||||
properties:
|
||||
id:
|
||||
@@ -1227,10 +1227,10 @@ components:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
formElements:
|
||||
formElementSubSections:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementDto"
|
||||
$ref: "#/components/schemas/FormElementSubSectionDto"
|
||||
applicationFormId:
|
||||
type: string
|
||||
format: uuid
|
||||
@@ -1239,7 +1239,7 @@ components:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- elements
|
||||
- subsections
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
@@ -1247,16 +1247,16 @@ components:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
elements:
|
||||
subsections:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementSnapshotDto"
|
||||
$ref: "#/components/schemas/FormElementSubSectionSnapshotDto"
|
||||
|
||||
CreateFormElementSectionDto:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- formElements
|
||||
- formElementSubSections
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
@@ -1267,6 +1267,59 @@ components:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
formElementSubSections:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/CreateFormElementSubSectionDto"
|
||||
|
||||
FormElementSubSectionDto:
|
||||
type: object
|
||||
required:
|
||||
- id
|
||||
- title
|
||||
- formElements
|
||||
- formElementSectionId
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
format: uuid
|
||||
title:
|
||||
type: string
|
||||
subtitle:
|
||||
type: string
|
||||
formElements:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementDto"
|
||||
formElementSectionId:
|
||||
type: string
|
||||
format: uuid
|
||||
|
||||
FormElementSubSectionSnapshotDto:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- elements
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
subtitle:
|
||||
type: string
|
||||
elements:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/FormElementSnapshotDto"
|
||||
|
||||
CreateFormElementSubSectionDto:
|
||||
type: object
|
||||
required:
|
||||
- title
|
||||
- formElements
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
subtitle:
|
||||
type: string
|
||||
formElements:
|
||||
type: array
|
||||
items:
|
||||
@@ -1278,7 +1331,7 @@ components:
|
||||
- id
|
||||
- options
|
||||
- type
|
||||
- formElementSectionId
|
||||
- formElementSubSectionId
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
@@ -1293,7 +1346,7 @@ components:
|
||||
$ref: "#/components/schemas/FormOptionDto"
|
||||
type:
|
||||
$ref: "#/components/schemas/FormElementType"
|
||||
formElementSectionId:
|
||||
formElementSubSectionId:
|
||||
type: string
|
||||
format: uuid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user