Added DELETE /preorder to api docs yaml

This commit is contained in:
Frank Schubert
2022-12-14 16:12:59 +01:00
parent 532bd84a65
commit 2afd0ffa60

View File

@@ -523,6 +523,44 @@ paths:
description: Unauthorized
'404':
description: Vorbestellung nicht gefunden
delete:
tags:
- preorder
summary: Bestellung stornieren/kündigen
description: Erstellt einen Storno Request
operationId: cancelPreorder
parameters:
- name: code
in: path
description: code der Vorbestellung oder OAID der Wohneinheit
required: true
schema:
type: string
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
properties:
status:
type: string
description: Status string
example: OK
result:
type: object
properties:
message:
type: string
description: Statustext
example: Cancellation request submited
'401':
description: Unauthorized
'403':
description: Keine Berechtigung oder Storno Request bereits vorhanden
'404':
description: Bestellung nicht gefunden oder bereits storniert
components:
schemas:
Zips: