-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
83 lines (82 loc) · 2.37 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
openapi: 3.1.0
info:
title: Einkaufzettel API
description: RESTFul API for the einkaufszettel-server
version: 0.1.1
license:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
servers:
- url: 'https://ez.nachtsieb.de:/r0/'
paths:
'/ez/{eid}':
get:
summary: Get the full EZ (Einkaufszettel) with the given eid (einkaufszettel id)
description: UUID needed for access the EZ
parameters:
- name: eid
in: path
required: true
schema:
type: string
responses:
'200':
description: The whole EZ will be returned
content:
application/json:
schema:
$ref: 'https://nachtsieb.de/docs/ezschema.json'
'404':
description: There is no EZ with this eid
default:
description: unexpected error (500)
put:
summary: Create or update an Einkaufszettel
description: some description
parameters:
- name : eid
in: path
required: true
schema:
type: string
requestBody:
description: EZ to add or update to the Server
content:
'application/json':
schema:
$ref: 'https://nachtsieb.de/docs/ezschema.json'
responses:
'200':
description: EZ properly created or updated
content:
application/json:
schema:
$ref: 'https://nachtsieb.de/docs/ezschema.json'
'304':
description: EZ versions are the same
'400':
description: Invalid EZ was sent
'404':
description: There is no EZ with this eid
'409':
description: Conflict - There is already a newer EZ version on the server
'413':
description: EZ to large
default:
description: unexpected error (500)
delete:
summary: Delete an existing EZ
description: The EZ with the eid will be deleted from the server
parameters:
- name : eid
in: path
required: true
schema:
type: string
responses:
'200':
description: EZ was successfully deleted from server
'404':
description: There is no EZ with this eid
default:
description: unexpected error (500)