-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopenapi.yml
210 lines (210 loc) · 5.22 KB
/
openapi.yml
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
openapi: "3.0.0"
info:
description: ""
version: "0.2.0"
title: "liquide bleiben"
contact:
email: "[email protected]"
license:
name: "MIT"
url: "https://github.com/TimMaa/liquide-bleiben/blob/master/LICENSE"
servers:
- url: "https://finder.wir-bleiben-liqui.de"
description: "Production server"
paths:
/api/offers:
get:
summary: "Get all available offers"
operationId: "getOffers"
parameters:
- $ref: "#/components/parameters/state"
- $ref: "#/components/parameters/trade"
- $ref: "#/components/parameters/age"
- $ref: "#/components/parameters/legal"
- $ref: "#/components/parameters/sales"
- $ref: "#/components/parameters/employees"
responses:
200:
description: "Succesful"
content:
application/json:
schema:
$ref: "#/components/schemas/response-offers"
400:
description: "Bad Input"
content:
application/json:
schema:
type: "object"
properties:
error:
type: "string"
/api/descriptions:
get:
summary: "Get easy to understand descriptions for different types of clusters"
operationId: "getDescriptions"
responses:
200:
description: "Succesful"
content:
application/json:
schema:
$ref: "#/components/schemas/response-descriptions"
/api/selects:
get:
summary: "Get option values for selection"
operationId: "getSelects"
responses:
200:
description: "Succesful"
content:
application/json:
schema:
$ref: "#/components/schemas/response-selects"
components:
parameters:
state:
in: "query"
name: "state"
description: "german state the company is located in"
required: false
schema:
type: "string"
enum:
- "Baden-Württemberg"
- "Bayern"
- "Berlin"
- "Brandenburg"
- "Bremen"
- "Hamburg"
- "Hessen"
- "Mecklenburg-Vorpommern"
- "Niedersachsen"
- "Nordrhein-Westfalen"
- "Rheinland-Pfalz"
- "Saarland"
- "Sachsen-Anhalt"
- "Sachsen"
- "Schleswig-Holstein"
- "Thüringen"
trade:
in: "query"
name: "trade"
description: "trade of the company"
required: false
schema:
type: "string"
enum:
- "Land- und Forstwirtschaft Fischerei und Fischzucht"
- "Bergbau und Gewinnung von Steinen und Erden"
- "Verarbeitendes Gewerbe"
- "Energie- und Wasserversorgung"
- "Handel"
- "Baugewerbe"
- "Dienstleistung"
- "Gesundheit / Pflege / Soziales"
- "Gastronomie / Hotel"
- "Sonstige"
age:
in: "query"
name: "age"
description: "age of the company in years"
required: false
schema:
type: "integer"
legal:
in: "query"
name: "legal"
description: "legal form of the company"
required: false
schema:
type: "string"
enum:
- "GmbH"
- "UG"
- "AG"
- "GBR"
- "E.K."
- "GmbH & Co. KG"
- "OHG"
- "Einzelunternehmer"
sales:
in: "query"
name: "sales"
description: "last years sales of the company (rounded to full Euro)"
required: false
schema:
type: "integer"
employees:
in: "query"
name: "employees"
description: "employees of the company"
required: false
schema:
type: "integer"
schemas:
cluster:
type: "object"
properties:
name:
type: "string"
offers:
type: "array"
items:
type: "object"
properties:
id:
type: "number"
name:
type: "string"
fields:
type: "object"
properties:
main:
$ref: "#/components/schemas/offer-fields"
details:
$ref: "#/components/schemas/offer-fields"
offer-fields:
type: "array"
items:
type: "object"
properties:
id:
type: "number"
name:
type: "string"
value:
type: "string"
response-descriptions:
type: "array"
items:
type: "object"
properties:
name:
type: "string"
html:
type: "string"
response-offers:
type: "array"
items:
$ref: "#/components/schemas/cluster"
response-selects:
type: "array"
items:
type: "object"
properties:
id:
type: "integer"
name:
type: "string"
options:
type: "array"
items:
type: "object"
properties:
id:
type: "integer"
name:
type: "string"
externalDocs:
url: "https://devpost.com/software/liquiditat-fur-den-mittelstand"