From 2afd0ffa60eb7a86a129a381da9d1585d1d1acd6 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 14 Dec 2022 16:12:59 +0100 Subject: [PATCH] Added DELETE /preorder to api docs yaml --- public/docs/preorder-api.yaml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/public/docs/preorder-api.yaml b/public/docs/preorder-api.yaml index edad69279..c4c166e3f 100644 --- a/public/docs/preorder-api.yaml +++ b/public/docs/preorder-api.yaml @@ -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: