Use lombok and correctly return a signingrequest from the database

This commit is contained in:
2025-01-30 19:46:06 +01:00
parent 29c7a0b93b
commit 14ff360146
12 changed files with 194 additions and 21 deletions

View File

@ -37,6 +37,39 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/HelloResponse"
/signing-request/{id}:
get:
tags:
- signing-request
summary: Get a signing request
operationId: getSigningRequest
parameters:
- name: id
in: path
required: true
description: The ID of the signing request
schema:
type: string
responses:
200:
description: "Signing request was found"
content:
application/json:
schema:
$ref: "#/components/schemas/GetSigningRequestResponse"
401:
description: "Unauthorized"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
404:
description: "Signing request was not found"
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
/token:
post:
tags:
@ -89,6 +122,21 @@ components:
token:
type: string
GetSigningRequestResponse:
type: object
required:
- id
- signed
properties:
id:
type: string
signingRequestDocumentIds:
type: array
items:
type: string
signed:
type: boolean
ErrorResponse:
type: object
required: