diff --git a/legalconsenthub-backend/api/legalconsenthub.yml b/legalconsenthub-backend/api/legalconsenthub.yml index 8084a23..c18e340 100644 --- a/legalconsenthub-backend/api/legalconsenthub.yml +++ b/legalconsenthub-backend/api/legalconsenthub.yml @@ -566,18 +566,6 @@ components: bearerFormat: JWT schemas: - ####### UserDto ####### - UserDto: - type: object - required: - - id - - name - properties: - id: - type: string - name: - type: string - ####### ApplicationFormDto ####### ApplicationFormDto: type: object @@ -647,6 +635,79 @@ components: items: $ref: "#/components/schemas/ApplicationFormDto" + ####### Form ####### + FormElementDto: + type: object + required: + - id + - applicationFormId + - options + - type + properties: + id: + type: string + format: uuid + applicationFormId: + type: string + format: uuid + options: + type: array + items: + $ref: "#/components/schemas/FormOptionDto" + type: + $ref: "#/components/schemas/FormElementType" + + CreateFormElementDto: + type: object + required: + - options + - type + properties: + options: + type: array + items: + $ref: "#/components/schemas/FormOptionDto" + type: + $ref: "#/components/schemas/FormElementType" + + FormOptionDto: + type: object + required: + - value + - label + - processingPurpose + - employeeDataCategory + properties: + value: + type: string + label: + type: string + processingPurpose: + $ref: "#/components/schemas/ProcessingPurpose" + employeeDataCategory: + $ref: "#/components/schemas/EmployeeDataCategory" + + FormElementType: + type: string + enum: + - SELECT + - CHECKBOX + - RADIOBUTTON + - TEXTFIELD + - SWITCH + + ####### UserDto ####### + UserDto: + type: object + required: + - id + - name + properties: + id: + type: string + name: + type: string + ####### CommentDto ####### CommentDto: type: object @@ -745,67 +806,6 @@ components: type: string format: binary - ####### Form ####### - FormElementDto: - type: object - required: - - id - - applicationFormId - - options - - type - properties: - id: - type: string - format: uuid - applicationFormId: - type: string - format: uuid - options: - type: array - items: - $ref: "#/components/schemas/FormOptionDto" - type: - $ref: "#/components/schemas/FormElementType" - - CreateFormElementDto: - type: object - required: - - options - - type - properties: - options: - type: array - items: - $ref: "#/components/schemas/FormOptionDto" - type: - $ref: "#/components/schemas/FormElementType" - - FormOptionDto: - type: object - required: - - value - - label - - processingPurpose - - employeeDataCategory - properties: - value: - type: string - label: - type: string - processingPurpose: - $ref: "#/components/schemas/ProcessingPurpose" - employeeDataCategory: - $ref: "#/components/schemas/EmployeeDataCategory" - - FormElementType: - type: string - enum: - - SELECT - - CHECKBOX - - RADIOBUTTON - - TEXTFIELD - - SWITCH - ####### Notification ####### NotificationDto: type: object