openapi: 3.2.0 info: title: DCC Boxed DUIS Signing Tool Verify API description: HTTP API for signing and validating DUIS XML messages version: 1.0.0 contact: name: Smart DCC Limited license: name: GPL-3.0 url: https://www.gnu.org/licenses/gpl-3.0.html servers: - url: http://localhost:8080 description: Local development server tags: - name: Verify paths: /verify: post: summary: Verify a DUIS response description: Validates a signed DUIS XML message and returns the unsigned XML operationId: verifyMessage requestBody: required: true content: application/json: schema: type: object required: - message properties: message: type: string format: byte description: Base64-encoded signed DUIS XML message with digital signature example: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4... responses: '200': description: Successfully verified message content: application/json: schema: type: object properties: message: type: string format: byte description: Base64-encoded validated DUIS XML message without digital signature example: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4... '400': description: Bad request - invalid signature or validation error content: application/json: schema: $ref: '#/components/schemas/Error' '405': description: Method not allowed content: application/json: schema: $ref: '#/components/schemas/Error' tags: - Verify components: schemas: Error: type: object properties: error: type: string description: Error message errorCode: type: string description: Exception class name