Added DELETE /preorder to api docs yaml
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user