Use lombok and correctly return a signingrequest from the database
This commit is contained in:
48
openapi.yml
48
openapi.yml
@ -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:
|
||||
|
Reference in New Issue
Block a user