| [3a89adb] | 1 | openapi: 3.0.0
|
|---|
| 2 | info:
|
|---|
| 3 | title: GNUBoat Mapservice API
|
|---|
| 4 | contact:
|
|---|
| 5 | name: EngSaS - Engineering Solutions and Services Langenbach
|
|---|
| 6 | url: 'http://www.engsas.com'
|
|---|
| 7 | email: info@engsas.de
|
|---|
| 8 | license:
|
|---|
| 9 | name: GPL 3
|
|---|
| 10 | url: 'https://www.gnu.org/licenses/gpl-3.0.en.html'
|
|---|
| 11 | version: v1
|
|---|
| 12 | description: API to upload log files with water depth to GNUBoat server
|
|---|
| 13 | servers:
|
|---|
| 14 | - url: 'https://gnuboat.engsas.com/mapservice/{version}'
|
|---|
| 15 | description: The production API server
|
|---|
| 16 | variables:
|
|---|
| 17 | version:
|
|---|
| 18 | default: v1
|
|---|
| 19 | - url: 'http://localhost:8080/mapservice/{version}'
|
|---|
| 20 | description: The local flask development url
|
|---|
| 21 | variables:
|
|---|
| 22 | version:
|
|---|
| 23 | default: v1
|
|---|
| 24 | paths:
|
|---|
| [ec8d5d0] | 25 | /user:
|
|---|
| [be25db1] | 26 | get:
|
|---|
| [28198a1] | 27 | description: Returns information of current/authorized user
|
|---|
| [be25db1] | 28 | tags:
|
|---|
| 29 | - users
|
|---|
| 30 | summary: Returns info of a user
|
|---|
| 31 | operationId: usersGet
|
|---|
| 32 | security:
|
|---|
| 33 | - basicAuth: []
|
|---|
| 34 | - apiKeyAuth: []
|
|---|
| 35 | responses:
|
|---|
| 36 | '200':
|
|---|
| 37 | description: OK
|
|---|
| 38 | content:
|
|---|
| 39 | application/json:
|
|---|
| 40 | schema:
|
|---|
| 41 | $ref: '#/components/schemas/User'
|
|---|
| 42 | examples:
|
|---|
| 43 | User:
|
|---|
| 44 | $ref: '#/components/examples/User'
|
|---|
| 45 | '400':
|
|---|
| 46 | $ref: '#/components/responses/BadRequest'
|
|---|
| 47 | '401':
|
|---|
| 48 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 49 | post:
|
|---|
| 50 | description: Registers a new user
|
|---|
| 51 | tags:
|
|---|
| 52 | - users
|
|---|
| 53 | summary: Registers a new user
|
|---|
| 54 | operationId: usersRegister
|
|---|
| 55 | requestBody:
|
|---|
| 56 | content:
|
|---|
| 57 | application/json:
|
|---|
| 58 | schema:
|
|---|
| 59 | $ref: '#/components/schemas/UserCreation'
|
|---|
| 60 | examples:
|
|---|
| [ae2ff15] | 61 | UserCreation:
|
|---|
| [be25db1] | 62 | $ref: '#/components/examples/UserCreation'
|
|---|
| 63 | responses:
|
|---|
| 64 | '201':
|
|---|
| 65 | description: Userr created
|
|---|
| 66 | content:
|
|---|
| 67 | application/json:
|
|---|
| 68 | schema:
|
|---|
| 69 | $ref: '#/components/schemas/User'
|
|---|
| 70 | examples:
|
|---|
| [ae2ff15] | 71 | User:
|
|---|
| [be25db1] | 72 | $ref: '#/components/examples/User'
|
|---|
| 73 | '400':
|
|---|
| 74 | $ref: '#/components/responses/BadRequest'
|
|---|
| 75 | options:
|
|---|
| 76 | description: Used by CORS preflight
|
|---|
| 77 | tags:
|
|---|
| 78 | - users
|
|---|
| 79 | responses:
|
|---|
| 80 | '200':
|
|---|
| 81 | description: CORS prefilght requests should return 200 as status code
|
|---|
| 82 | content:
|
|---|
| [13cbe66] | 83 | application/json: {}
|
|---|
| [ec8d5d0] | 84 | /user/apikey_create:
|
|---|
| [be25db1] | 85 | get:
|
|---|
| 86 | description: Generates and returns a new API key for current user
|
|---|
| 87 | tags:
|
|---|
| 88 | - users
|
|---|
| 89 | summary: Returns a new API key
|
|---|
| 90 | operationId: usersApiKeyCreate
|
|---|
| 91 | security:
|
|---|
| 92 | - basicAuth: []
|
|---|
| 93 | responses:
|
|---|
| 94 | '200':
|
|---|
| 95 | description: OK
|
|---|
| 96 | content:
|
|---|
| 97 | application/json:
|
|---|
| 98 | schema:
|
|---|
| 99 | $ref: '#/components/schemas/apiKeys'
|
|---|
| [13cbe66] | 100 | example: NewApiKey4711
|
|---|
| [be25db1] | 101 | '400':
|
|---|
| 102 | $ref: '#/components/responses/BadRequest'
|
|---|
| 103 | '401':
|
|---|
| 104 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 105 | '/user/{api_key}':
|
|---|
| 106 | delete:
|
|---|
| 107 | description: Deletes given API key and returns remaining API keys of the user
|
|---|
| 108 | tags:
|
|---|
| 109 | - users
|
|---|
| 110 | summary: Deletes API key
|
|---|
| 111 | operationId: usersApiKeyDelete
|
|---|
| 112 | security:
|
|---|
| 113 | - basicAuth: []
|
|---|
| 114 | parameters:
|
|---|
| 115 | - name: api_key
|
|---|
| 116 | in: path
|
|---|
| 117 | description: API key
|
|---|
| 118 | required: true
|
|---|
| 119 | schema:
|
|---|
| 120 | $ref: '#/components/schemas/apiKey'
|
|---|
| [ae2ff15] | 121 | example: test_key_delete
|
|---|
| [be25db1] | 122 | responses:
|
|---|
| 123 | '200':
|
|---|
| 124 | description: OK
|
|---|
| 125 | content:
|
|---|
| 126 | application/json:
|
|---|
| 127 | schema:
|
|---|
| 128 | $ref: '#/components/schemas/apiKeys'
|
|---|
| [13cbe66] | 129 | example: ApiKey4711
|
|---|
| [be25db1] | 130 | '400':
|
|---|
| 131 | $ref: '#/components/responses/BadRequest'
|
|---|
| 132 | '401':
|
|---|
| 133 | $ref: '#/components/responses/Unauthorized'
|
|---|
| [13cbe66] | 134 | '404':
|
|---|
| 135 | $ref: '#/components/responses/NotFound'
|
|---|
| [be25db1] | 136 | '/user/activate/{activation_code}':
|
|---|
| 137 | get:
|
|---|
| 138 | description: Activates a user account
|
|---|
| 139 | tags:
|
|---|
| 140 | - users
|
|---|
| 141 | summary: Activates a user account
|
|---|
| 142 | operationId: usersActivate
|
|---|
| 143 | parameters:
|
|---|
| 144 | - name: activation_code
|
|---|
| 145 | in: path
|
|---|
| 146 | description: Activation code
|
|---|
| 147 | required: true
|
|---|
| 148 | schema:
|
|---|
| 149 | $ref: '#/components/schemas/activationCode'
|
|---|
| [13cbe66] | 150 | example: dac9630aec642a428cd73f4be0a03569
|
|---|
| [be25db1] | 151 | responses:
|
|---|
| 152 | '302':
|
|---|
| 153 | description: OK or not OK
|
|---|
| 154 | headers:
|
|---|
| 155 | Location:
|
|---|
| 156 | schema:
|
|---|
| 157 | type: string
|
|---|
| [13cbe66] | 158 | description: 'URL to the website, showing the result of the activation'
|
|---|
| [ec8d5d0] | 159 | /waters:
|
|---|
| [3a89adb] | 160 | get:
|
|---|
| 161 | description: Returns all waters
|
|---|
| 162 | tags:
|
|---|
| 163 | - waters
|
|---|
| [ae2ff15] | 164 | summary: Find waters
|
|---|
| [3a89adb] | 165 | operationId: watersGet
|
|---|
| 166 | parameters:
|
|---|
| 167 | - name: name
|
|---|
| [be25db1] | 168 | in: query
|
|---|
| [3a89adb] | 169 | schema:
|
|---|
| [041e464] | 170 | $ref: '#/components/schemas/itemName'
|
|---|
| [ae2ff15] | 171 | example: Test
|
|---|
| [3a89adb] | 172 | - name: manager
|
|---|
| [be25db1] | 173 | in: query
|
|---|
| [3a89adb] | 174 | schema:
|
|---|
| 175 | $ref: '#/components/schemas/username'
|
|---|
| [ae2ff15] | 176 | example: autotests
|
|---|
| [bcaee05] | 177 | - name: stakeholder
|
|---|
| 178 | in: query
|
|---|
| 179 | description: A stakeholder is a user, which has uploaded Logfiles to water, added a gauge, ...
|
|---|
| 180 | schema:
|
|---|
| 181 | $ref: '#/components/schemas/username'
|
|---|
| [ae2ff15] | 182 | example: autotests
|
|---|
| [3a89adb] | 183 | - $ref: '#/components/parameters/orderBy'
|
|---|
| 184 | - $ref: '#/components/parameters/offset'
|
|---|
| 185 | - $ref: '#/components/parameters/limit'
|
|---|
| 186 | responses:
|
|---|
| 187 | '200':
|
|---|
| 188 | description: OK
|
|---|
| 189 | content:
|
|---|
| 190 | application/json:
|
|---|
| 191 | schema:
|
|---|
| 192 | $ref: '#/components/schemas/waters'
|
|---|
| 193 | examples:
|
|---|
| 194 | Waters:
|
|---|
| 195 | $ref: '#/components/examples/waters'
|
|---|
| [13cbe66] | 196 | '404':
|
|---|
| 197 | $ref: '#/components/responses/NotFound'
|
|---|
| [3a89adb] | 198 | post:
|
|---|
| 199 | description: Adds a new water to the database
|
|---|
| 200 | tags:
|
|---|
| 201 | - waters
|
|---|
| 202 | summary: Add a new water
|
|---|
| [be25db1] | 203 | operationId: watersCreate
|
|---|
| [3a89adb] | 204 | security:
|
|---|
| 205 | - basicAuth: []
|
|---|
| 206 | - apiKeyAuth: []
|
|---|
| 207 | requestBody:
|
|---|
| 208 | content:
|
|---|
| 209 | application/json:
|
|---|
| 210 | schema:
|
|---|
| 211 | $ref: '#/components/schemas/WaterCreation'
|
|---|
| 212 | responses:
|
|---|
| 213 | '201':
|
|---|
| 214 | description: Water created
|
|---|
| 215 | content:
|
|---|
| 216 | application/json:
|
|---|
| 217 | schema:
|
|---|
| 218 | $ref: '#/components/schemas/Water'
|
|---|
| 219 | examples:
|
|---|
| 220 | Water:
|
|---|
| 221 | $ref: '#/components/examples/Water'
|
|---|
| 222 | '400':
|
|---|
| 223 | $ref: '#/components/responses/BadRequest'
|
|---|
| 224 | '401':
|
|---|
| 225 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 226 | '/waters/{id}':
|
|---|
| 227 | get:
|
|---|
| 228 | description: Returns the water identified by id
|
|---|
| 229 | tags:
|
|---|
| 230 | - waters
|
|---|
| 231 | summary: Represents a water
|
|---|
| [13cbe66] | 232 | operationId: watersGetById
|
|---|
| [3a89adb] | 233 | parameters:
|
|---|
| 234 | - name: id
|
|---|
| 235 | in: path
|
|---|
| 236 | description: Item ID
|
|---|
| 237 | required: true
|
|---|
| 238 | schema:
|
|---|
| [041e464] | 239 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 240 | example: 1
|
|---|
| [3a89adb] | 241 | responses:
|
|---|
| 242 | '200':
|
|---|
| 243 | description: OK
|
|---|
| 244 | content:
|
|---|
| 245 | application/json:
|
|---|
| 246 | schema:
|
|---|
| 247 | $ref: '#/components/schemas/Water'
|
|---|
| 248 | examples:
|
|---|
| 249 | Water:
|
|---|
| 250 | $ref: '#/components/examples/Water'
|
|---|
| 251 | '404':
|
|---|
| 252 | $ref: '#/components/responses/NotFound'
|
|---|
| [13cbe66] | 253 | '/waters/{water_id}/gauges':
|
|---|
| 254 | get:
|
|---|
| 255 | description: Returns all gauges of water waterId
|
|---|
| 256 | tags:
|
|---|
| 257 | - waters
|
|---|
| 258 | summary: Find gauges of water waterId by gaugeId
|
|---|
| 259 | operationId: watersGaugesGet
|
|---|
| 260 | parameters:
|
|---|
| 261 | - name: water_id
|
|---|
| 262 | in: path
|
|---|
| 263 | description: Water ID
|
|---|
| 264 | required: true
|
|---|
| 265 | schema:
|
|---|
| 266 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 267 | example: 1
|
|---|
| [13cbe66] | 268 | - name: name
|
|---|
| 269 | in: query
|
|---|
| 270 | schema:
|
|---|
| 271 | $ref: '#/components/schemas/itemName'
|
|---|
| [ae2ff15] | 272 | example: Test
|
|---|
| [13cbe66] | 273 | - name: manager
|
|---|
| 274 | in: query
|
|---|
| 275 | schema:
|
|---|
| 276 | $ref: '#/components/schemas/username'
|
|---|
| [ae2ff15] | 277 | example: autotests
|
|---|
| [13cbe66] | 278 | - $ref: '#/components/parameters/orderBy'
|
|---|
| 279 | - $ref: '#/components/parameters/offset'
|
|---|
| 280 | - $ref: '#/components/parameters/limit'
|
|---|
| 281 | responses:
|
|---|
| 282 | '200':
|
|---|
| 283 | description: OK
|
|---|
| 284 | content:
|
|---|
| 285 | application/json:
|
|---|
| 286 | schema:
|
|---|
| 287 | $ref: '#/components/schemas/Gauges'
|
|---|
| 288 | examples:
|
|---|
| 289 | Gauges:
|
|---|
| 290 | $ref: '#/components/examples/Gauges'
|
|---|
| 291 | application/geo+json:
|
|---|
| 292 | schema:
|
|---|
| 293 | $ref: '#/components/schemas/GaugesGeoJson'
|
|---|
| 294 | examples:
|
|---|
| 295 | Gauge:
|
|---|
| 296 | $ref: '#/components/examples/GaugesGeoJson'
|
|---|
| 297 | post:
|
|---|
| 298 | description: Adds a new gauge for water waterId to the database
|
|---|
| 299 | tags:
|
|---|
| 300 | - waters
|
|---|
| 301 | summary: Add a new water
|
|---|
| 302 | operationId: watersGaugeCreate
|
|---|
| 303 | parameters:
|
|---|
| 304 | - name: water_id
|
|---|
| 305 | in: path
|
|---|
| 306 | description: Water ID
|
|---|
| 307 | required: true
|
|---|
| 308 | schema:
|
|---|
| 309 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 310 | example: 1
|
|---|
| [13cbe66] | 311 | security:
|
|---|
| 312 | - basicAuth: []
|
|---|
| 313 | - apiKeyAuth: []
|
|---|
| 314 | requestBody:
|
|---|
| 315 | content:
|
|---|
| 316 | application/json:
|
|---|
| 317 | schema:
|
|---|
| 318 | $ref: '#/components/schemas/GaugeCreation'
|
|---|
| 319 | example:
|
|---|
| 320 | name: New Orleans
|
|---|
| 321 | location:
|
|---|
| 322 | - 90.136111
|
|---|
| 323 | - 29.934722
|
|---|
| [5e16955] | 324 | referenceWaterLevelGaugeHeight: 5.1
|
|---|
| [13cbe66] | 325 | responses:
|
|---|
| 326 | '201':
|
|---|
| 327 | description: Gauge created
|
|---|
| 328 | content:
|
|---|
| 329 | application/json:
|
|---|
| 330 | schema:
|
|---|
| 331 | $ref: '#/components/schemas/Gauge'
|
|---|
| 332 | examples:
|
|---|
| 333 | Gauge:
|
|---|
| 334 | $ref: '#/components/examples/Gauge'
|
|---|
| 335 | application/geo+json:
|
|---|
| 336 | schema:
|
|---|
| 337 | $ref: '#/components/schemas/GaugeGeoJson'
|
|---|
| 338 | examples:
|
|---|
| 339 | Gauge:
|
|---|
| 340 | $ref: '#/components/examples/GaugeGeoJson'
|
|---|
| 341 | '400':
|
|---|
| 342 | $ref: '#/components/responses/BadRequest'
|
|---|
| 343 | '401':
|
|---|
| 344 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 345 | '/waters/{water_id}/gauges/{gauge_id}':
|
|---|
| 346 | get:
|
|---|
| 347 | description: Returns the gauge identified by id
|
|---|
| 348 | tags:
|
|---|
| 349 | - waters
|
|---|
| 350 | summary: Represents a gauge
|
|---|
| 351 | operationId: watersGaugeGetById
|
|---|
| 352 | parameters:
|
|---|
| 353 | - name: water_id
|
|---|
| 354 | in: path
|
|---|
| 355 | description: Water ID
|
|---|
| 356 | required: true
|
|---|
| 357 | schema:
|
|---|
| 358 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 359 | example: 1
|
|---|
| [13cbe66] | 360 | - name: gauge_id
|
|---|
| 361 | in: path
|
|---|
| 362 | description: Gauge ID
|
|---|
| 363 | required: true
|
|---|
| 364 | schema:
|
|---|
| 365 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 366 | example: 1
|
|---|
| [13cbe66] | 367 | responses:
|
|---|
| 368 | '200':
|
|---|
| 369 | description: OK
|
|---|
| 370 | content:
|
|---|
| 371 | application/json:
|
|---|
| 372 | schema:
|
|---|
| 373 | $ref: '#/components/schemas/Gauge'
|
|---|
| 374 | examples:
|
|---|
| 375 | Gauge:
|
|---|
| 376 | $ref: '#/components/examples/Gauge'
|
|---|
| 377 | application/geo+json:
|
|---|
| 378 | schema:
|
|---|
| 379 | $ref: '#/components/schemas/GaugeGeoJson'
|
|---|
| 380 | examples:
|
|---|
| 381 | Gauge:
|
|---|
| 382 | $ref: '#/components/examples/GaugeGeoJson'
|
|---|
| 383 | '400':
|
|---|
| 384 | $ref: '#/components/responses/BadRequest'
|
|---|
| 385 | '404':
|
|---|
| 386 | $ref: '#/components/responses/NotFound'
|
|---|
| [1cd45dd] | 387 | /devices:
|
|---|
| [ec8d5d0] | 388 | get:
|
|---|
| 389 | description: Returns all devices of user
|
|---|
| 390 | tags:
|
|---|
| 391 | - devices
|
|---|
| 392 | summary: Find devices by id
|
|---|
| 393 | operationId: devicesGet
|
|---|
| 394 | security:
|
|---|
| 395 | - basicAuth: []
|
|---|
| 396 | - apiKeyAuth: []
|
|---|
| 397 | parameters:
|
|---|
| 398 | - name: name
|
|---|
| 399 | in: query
|
|---|
| 400 | schema:
|
|---|
| 401 | $ref: '#/components/schemas/itemName'
|
|---|
| [ae2ff15] | 402 | example: Gnu
|
|---|
| [ec8d5d0] | 403 | - $ref: '#/components/parameters/orderBy'
|
|---|
| 404 | - $ref: '#/components/parameters/offset'
|
|---|
| 405 | - $ref: '#/components/parameters/limit'
|
|---|
| 406 | responses:
|
|---|
| 407 | '200':
|
|---|
| 408 | description: OK
|
|---|
| 409 | content:
|
|---|
| 410 | application/json:
|
|---|
| 411 | schema:
|
|---|
| 412 | $ref: '#/components/schemas/devices'
|
|---|
| 413 | examples:
|
|---|
| 414 | Devices:
|
|---|
| 415 | $ref: '#/components/examples/devices'
|
|---|
| 416 | '404':
|
|---|
| 417 | $ref: '#/components/responses/NotFound'
|
|---|
| 418 | post:
|
|---|
| 419 | description: Adds a new device to the database
|
|---|
| 420 | tags:
|
|---|
| 421 | - devices
|
|---|
| 422 | summary: Add a new device
|
|---|
| 423 | operationId: devicesCreate
|
|---|
| 424 | security:
|
|---|
| 425 | - basicAuth: []
|
|---|
| 426 | - apiKeyAuth: []
|
|---|
| 427 | requestBody:
|
|---|
| 428 | content:
|
|---|
| 429 | application/json:
|
|---|
| 430 | schema:
|
|---|
| 431 | $ref: '#/components/schemas/DeviceCreation'
|
|---|
| 432 | example:
|
|---|
| [1cd45dd] | 433 | name: Lovely Boat
|
|---|
| [ec8d5d0] | 434 | sensorDepth: 2
|
|---|
| 435 | responses:
|
|---|
| 436 | '201':
|
|---|
| 437 | description: Device created
|
|---|
| 438 | content:
|
|---|
| 439 | application/json:
|
|---|
| 440 | schema:
|
|---|
| 441 | $ref: '#/components/schemas/Device'
|
|---|
| 442 | examples:
|
|---|
| 443 | Device:
|
|---|
| 444 | $ref: '#/components/examples/Device'
|
|---|
| 445 | '400':
|
|---|
| 446 | $ref: '#/components/responses/BadRequest'
|
|---|
| 447 | '401':
|
|---|
| 448 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 449 | '/devices/{id}':
|
|---|
| 450 | get:
|
|---|
| 451 | description: Returns the device identified by id
|
|---|
| 452 | tags:
|
|---|
| 453 | - devices
|
|---|
| 454 | summary: Represents a device
|
|---|
| 455 | operationId: devicesGetById
|
|---|
| 456 | security:
|
|---|
| 457 | - basicAuth: []
|
|---|
| 458 | - apiKeyAuth: []
|
|---|
| 459 | parameters:
|
|---|
| 460 | - name: id
|
|---|
| 461 | in: path
|
|---|
| 462 | description: Item ID
|
|---|
| 463 | required: true
|
|---|
| 464 | schema:
|
|---|
| 465 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 466 | example: 1
|
|---|
| [ec8d5d0] | 467 | responses:
|
|---|
| 468 | '200':
|
|---|
| 469 | description: OK
|
|---|
| 470 | content:
|
|---|
| 471 | application/json:
|
|---|
| 472 | schema:
|
|---|
| 473 | $ref: '#/components/schemas/Device'
|
|---|
| 474 | examples:
|
|---|
| 475 | Water:
|
|---|
| 476 | $ref: '#/components/examples/Device'
|
|---|
| 477 | '404':
|
|---|
| 478 | $ref: '#/components/responses/NotFound'
|
|---|
| [1cd45dd] | 479 | delete:
|
|---|
| 480 | description: Deletes given device and returns remaining devices of the user
|
|---|
| 481 | tags:
|
|---|
| 482 | - devices
|
|---|
| 483 | summary: Deletes device
|
|---|
| 484 | operationId: devicesDeviceDelete
|
|---|
| 485 | security:
|
|---|
| 486 | - basicAuth: []
|
|---|
| 487 | - apiKeyAuth: []
|
|---|
| 488 | parameters:
|
|---|
| 489 | - name: id
|
|---|
| 490 | in: path
|
|---|
| 491 | description: Item id
|
|---|
| 492 | required: true
|
|---|
| 493 | schema:
|
|---|
| 494 | $ref: '#/components/schemas/itemId'
|
|---|
| 495 | example: 1
|
|---|
| 496 | responses:
|
|---|
| 497 | '200':
|
|---|
| 498 | description: OK
|
|---|
| 499 | content:
|
|---|
| 500 | application/json:
|
|---|
| 501 | schema:
|
|---|
| 502 | $ref: '#/components/schemas/devices'
|
|---|
| 503 | example:
|
|---|
| 504 | Devices:
|
|---|
| 505 | $ref: '#/components/examples/devices'
|
|---|
| 506 | '400':
|
|---|
| 507 | $ref: '#/components/responses/BadRequest'
|
|---|
| 508 | '401':
|
|---|
| 509 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 510 | '404':
|
|---|
| 511 | $ref: '#/components/responses/NotFound'
|
|---|
| [ec9e811] | 512 | /logs:
|
|---|
| 513 | get:
|
|---|
| 514 | description: Returns all log metadata
|
|---|
| 515 | tags:
|
|---|
| 516 | - logs
|
|---|
| [ae2ff15] | 517 | summary: Find logs by
|
|---|
| [ec9e811] | 518 | operationId: logsGet
|
|---|
| 519 | parameters:
|
|---|
| 520 | - name: submitter
|
|---|
| 521 | in: query
|
|---|
| 522 | schema:
|
|---|
| 523 | $ref: '#/components/schemas/username'
|
|---|
| [ae2ff15] | 524 | example: autotests
|
|---|
| [ec9e811] | 525 | - $ref: '#/components/parameters/orderBy'
|
|---|
| 526 | - $ref: '#/components/parameters/offset'
|
|---|
| 527 | - $ref: '#/components/parameters/limit'
|
|---|
| 528 | responses:
|
|---|
| 529 | '200':
|
|---|
| 530 | description: OK
|
|---|
| 531 | content:
|
|---|
| 532 | application/json:
|
|---|
| 533 | schema:
|
|---|
| 534 | $ref: '#/components/schemas/logs'
|
|---|
| 535 | examples:
|
|---|
| 536 | Logs:
|
|---|
| 537 | $ref: '#/components/examples/logs'
|
|---|
| 538 | '404':
|
|---|
| 539 | $ref: '#/components/responses/NotFound'
|
|---|
| [ac11efe] | 540 | post:
|
|---|
| [5e16955] | 541 | description: >-
|
|---|
| 542 | Creates a new log from given meta data. The log entries itself, must be
|
|---|
| 543 | uploaded per /logs/{log_id}
|
|---|
| [ac11efe] | 544 | tags:
|
|---|
| 545 | - logs
|
|---|
| 546 | summary: Add a new log
|
|---|
| 547 | operationId: logsLogCreate
|
|---|
| 548 | security:
|
|---|
| 549 | - basicAuth: []
|
|---|
| 550 | - apiKeyAuth: []
|
|---|
| 551 | requestBody:
|
|---|
| 552 | content:
|
|---|
| [ec9e811] | 553 | application/json:
|
|---|
| [ac11efe] | 554 | schema:
|
|---|
| [ec9e811] | 555 | $ref: '#/components/schemas/LogCreation'
|
|---|
| [ac11efe] | 556 | responses:
|
|---|
| 557 | '201':
|
|---|
| 558 | description: Log created
|
|---|
| 559 | content:
|
|---|
| 560 | application/json:
|
|---|
| 561 | schema:
|
|---|
| 562 | $ref: '#/components/schemas/LogMetaData'
|
|---|
| 563 | examples:
|
|---|
| 564 | LogMetaData:
|
|---|
| 565 | $ref: '#/components/examples/LogMetaData'
|
|---|
| 566 | '400':
|
|---|
| 567 | $ref: '#/components/responses/BadRequest'
|
|---|
| 568 | '401':
|
|---|
| 569 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 570 | '/logs/{log_id}':
|
|---|
| 571 | get:
|
|---|
| 572 | description: Returns the log identified by id
|
|---|
| 573 | tags:
|
|---|
| 574 | - logs
|
|---|
| 575 | summary: Represents a log
|
|---|
| 576 | operationId: logsLogGetById
|
|---|
| 577 | parameters:
|
|---|
| 578 | - name: log_id
|
|---|
| 579 | in: path
|
|---|
| 580 | description: Log ID
|
|---|
| 581 | required: true
|
|---|
| 582 | schema:
|
|---|
| 583 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 584 | example: 1
|
|---|
| [ac11efe] | 585 | responses:
|
|---|
| 586 | '200':
|
|---|
| 587 | description: OK
|
|---|
| 588 | content:
|
|---|
| 589 | application/json:
|
|---|
| 590 | schema:
|
|---|
| 591 | $ref: '#/components/schemas/Log'
|
|---|
| 592 | examples:
|
|---|
| 593 | Log:
|
|---|
| 594 | $ref: '#/components/examples/Log'
|
|---|
| 595 | application/geo+json:
|
|---|
| 596 | schema:
|
|---|
| 597 | $ref: '#/components/schemas/LogGeoJson'
|
|---|
| 598 | examples:
|
|---|
| 599 | Log:
|
|---|
| 600 | $ref: '#/components/examples/LogGeoJson'
|
|---|
| 601 | '400':
|
|---|
| 602 | $ref: '#/components/responses/BadRequest'
|
|---|
| 603 | '404':
|
|---|
| 604 | $ref: '#/components/responses/NotFound'
|
|---|
| [ec9e811] | 605 | post:
|
|---|
| 606 | description: Adds log entries from uploaded file to current Log
|
|---|
| 607 | tags:
|
|---|
| 608 | - logs
|
|---|
| 609 | summary: Add a new log entries
|
|---|
| 610 | operationId: logsLogUpload
|
|---|
| 611 | parameters:
|
|---|
| 612 | - name: log_id
|
|---|
| 613 | in: path
|
|---|
| 614 | description: Log ID
|
|---|
| 615 | required: true
|
|---|
| 616 | schema:
|
|---|
| 617 | $ref: '#/components/schemas/itemId'
|
|---|
| 618 | security:
|
|---|
| 619 | - basicAuth: []
|
|---|
| 620 | - apiKeyAuth: []
|
|---|
| 621 | requestBody:
|
|---|
| 622 | content:
|
|---|
| 623 | text/plain:
|
|---|
| 624 | schema:
|
|---|
| 625 | type: string
|
|---|
| 626 | format: binary
|
|---|
| 627 | responses:
|
|---|
| 628 | '201':
|
|---|
| 629 | description: Logs uploaded
|
|---|
| 630 | content:
|
|---|
| 631 | application/json:
|
|---|
| 632 | schema:
|
|---|
| [a88607b] | 633 | $ref: '#/components/schemas/LogMetaData'
|
|---|
| [ec9e811] | 634 | examples:
|
|---|
| 635 | Log:
|
|---|
| [a88607b] | 636 | $ref: '#/components/examples/LogMetaData'
|
|---|
| [ec9e811] | 637 | '400':
|
|---|
| 638 | $ref: '#/components/responses/BadRequest'
|
|---|
| 639 | '401':
|
|---|
| 640 | $ref: '#/components/responses/Unauthorized'
|
|---|
| [ac11efe] | 641 | delete:
|
|---|
| 642 | description: Deletes given log and returns remaining logs of the gauge
|
|---|
| 643 | tags:
|
|---|
| 644 | - logs
|
|---|
| 645 | summary: Deletes log
|
|---|
| 646 | operationId: logsLogDelete
|
|---|
| 647 | security:
|
|---|
| 648 | - basicAuth: []
|
|---|
| 649 | - apiKeyAuth: []
|
|---|
| 650 | parameters:
|
|---|
| 651 | - name: log_id
|
|---|
| 652 | in: path
|
|---|
| 653 | description: Log ID
|
|---|
| 654 | required: true
|
|---|
| 655 | schema:
|
|---|
| 656 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 657 | example: 1
|
|---|
| [ac11efe] | 658 | responses:
|
|---|
| 659 | '200':
|
|---|
| 660 | description: OK
|
|---|
| 661 | content:
|
|---|
| 662 | application/json:
|
|---|
| 663 | schema:
|
|---|
| 664 | $ref: '#/components/schemas/logs'
|
|---|
| 665 | example:
|
|---|
| 666 | Devices:
|
|---|
| 667 | $ref: '#/components/examples/logs'
|
|---|
| 668 | '400':
|
|---|
| 669 | $ref: '#/components/responses/BadRequest'
|
|---|
| 670 | '401':
|
|---|
| 671 | $ref: '#/components/responses/Unauthorized'
|
|---|
| 672 | '404':
|
|---|
| 673 | $ref: '#/components/responses/NotFound'
|
|---|
| [5e16955] | 674 | '/tiles/gnuboat/{accuracy}/{resolution}/{zoom}/{x_tile}/{y_tile}.png':
|
|---|
| 675 | get:
|
|---|
| 676 | description: 'Returns the map tile x_tile, y_tile at Zoomlevel zoom'
|
|---|
| 677 | tags:
|
|---|
| 678 | - tiles
|
|---|
| 679 | summary: Represents a tile
|
|---|
| 680 | operationId: tilesTileGet
|
|---|
| 681 | parameters:
|
|---|
| 682 | - name: accuracy
|
|---|
| 683 | in: path
|
|---|
| 684 | description: Accuracy of generated tiles
|
|---|
| 685 | required: true
|
|---|
| 686 | schema:
|
|---|
| 687 | title: >-
|
|---|
| 688 | Accuracy of the tiles (for a higher accuracy more measured points per square meter are needed to generate a pixel of water depth)
|
|---|
| 689 | type: string
|
|---|
| 690 | enum:
|
|---|
| 691 | - 'high'
|
|---|
| 692 | - 'low'
|
|---|
| [ae2ff15] | 693 | example: 'high'
|
|---|
| [5e16955] | 694 | - name: resolution
|
|---|
| 695 | in: path
|
|---|
| 696 | description: Resolution of the tiles
|
|---|
| 697 | required: true
|
|---|
| 698 | schema:
|
|---|
| 699 | title: >-
|
|---|
| 700 | Tile Resolution (Pixel per Tile) (Placed here, because
|
|---|
| 701 | codegenerator could use Enums in components/schemas
|
|---|
| 702 | type: integer
|
|---|
| 703 | format: int32
|
|---|
| 704 | enum:
|
|---|
| 705 | - 256
|
|---|
| 706 | - 512
|
|---|
| [ae2ff15] | 707 | example: 256
|
|---|
| [5e16955] | 708 | - name: zoom
|
|---|
| 709 | in: path
|
|---|
| 710 | description: Zoomlevel
|
|---|
| 711 | required: true
|
|---|
| 712 | schema:
|
|---|
| 713 | $ref: '#/components/schemas/tileZoomlevel'
|
|---|
| [ae2ff15] | 714 | example: 15
|
|---|
| [5e16955] | 715 | - name: x_tile
|
|---|
| 716 | in: path
|
|---|
| 717 | description: Number of the tile in x dimension
|
|---|
| 718 | required: true
|
|---|
| 719 | schema:
|
|---|
| 720 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 721 | example: 17298
|
|---|
| [5e16955] | 722 | - name: y_tile
|
|---|
| 723 | in: path
|
|---|
| 724 | description: Number of the tile in y dimension
|
|---|
| 725 | required: true
|
|---|
| 726 | schema:
|
|---|
| 727 | $ref: '#/components/schemas/itemId'
|
|---|
| [ae2ff15] | 728 | example: 21435
|
|---|
| [5e16955] | 729 | responses:
|
|---|
| 730 | '200':
|
|---|
| 731 | description: OK
|
|---|
| 732 | content:
|
|---|
| 733 | image/*:
|
|---|
| 734 | schema:
|
|---|
| 735 | type: string
|
|---|
| 736 | format: binary
|
|---|
| 737 | #contentEncoding: base64
|
|---|
| 738 | #contentMediaType: image/png
|
|---|
| 739 | '400':
|
|---|
| 740 | $ref: '#/components/responses/BadRequest'
|
|---|
| 741 | '404':
|
|---|
| 742 | $ref: '#/components/responses/NotFound'
|
|---|
| 743 | '500':
|
|---|
| 744 | $ref: '#/components/responses/InternalServerError'
|
|---|
| [3a89adb] | 745 | components:
|
|---|
| 746 | securitySchemes:
|
|---|
| 747 | basicAuth:
|
|---|
| 748 | type: http
|
|---|
| 749 | scheme: basic
|
|---|
| [adda9f2] | 750 | x-basicInfoFunc: gnuboat_mapservice.server_impl.security.Security.auth_basic
|
|---|
| [3a89adb] | 751 | apiKeyAuth:
|
|---|
| 752 | type: apiKey
|
|---|
| 753 | in: header
|
|---|
| 754 | name: X-API-KEY
|
|---|
| [adda9f2] | 755 | x-apikeyInfoFunc: gnuboat_mapservice.server_impl.security.Security.auth_api
|
|---|
| [3a89adb] | 756 | schemas:
|
|---|
| 757 | username:
|
|---|
| 758 | title: Username
|
|---|
| 759 | type: string
|
|---|
| [be25db1] | 760 | apiKey:
|
|---|
| 761 | title: API Key
|
|---|
| 762 | type: string
|
|---|
| 763 | apiKeys:
|
|---|
| 764 | title: Array of API keys
|
|---|
| 765 | type: array
|
|---|
| 766 | items:
|
|---|
| 767 | $ref: '#/components/schemas/apiKey'
|
|---|
| 768 | activationCode:
|
|---|
| 769 | title: Activation code for a User
|
|---|
| 770 | type: string
|
|---|
| [041e464] | 771 | itemId:
|
|---|
| [3a89adb] | 772 | title: Item ID
|
|---|
| 773 | type: integer
|
|---|
| [5e16955] | 774 | format: int64
|
|---|
| [041e464] | 775 | itemName:
|
|---|
| [3a89adb] | 776 | title: Item Name
|
|---|
| 777 | type: string
|
|---|
| [ec9e811] | 778 | itemBase:
|
|---|
| 779 | title: 'Basic, generic item data'
|
|---|
| 780 | type: object
|
|---|
| 781 | properties:
|
|---|
| 782 | label:
|
|---|
| 783 | type: string
|
|---|
| 784 | description: >-
|
|---|
| 785 | A representative name, for the item, which could be understand by
|
|---|
| 786 | the user. Mostly it should be the itemName
|
|---|
| 787 | id:
|
|---|
| 788 | $ref: '#/components/schemas/itemId'
|
|---|
| 789 | url:
|
|---|
| 790 | type: string
|
|---|
| 791 | format: url
|
|---|
| 792 | description: 'Url, where details of the object could be retrieved'
|
|---|
| 793 | required:
|
|---|
| 794 | - label
|
|---|
| 795 | - id
|
|---|
| [13cbe66] | 796 | order:
|
|---|
| 797 | title: order
|
|---|
| 798 | enum:
|
|---|
| 799 | - desc
|
|---|
| 800 | - asc
|
|---|
| 801 | type: string
|
|---|
| 802 | default: asc
|
|---|
| 803 | description: |
|
|---|
| 804 | Sort order:
|
|---|
| 805 | * `asc` - Ascending, from A to Z
|
|---|
| 806 | * `desc` - Descending, from Z to A
|
|---|
| 807 | example: asc
|
|---|
| [be25db1] | 808 | osmType:
|
|---|
| [041e464] | 809 | title: OSM type of item (N|W|R)
|
|---|
| [3a89adb] | 810 | type: string
|
|---|
| [041e464] | 811 | enum:
|
|---|
| 812 | - Node
|
|---|
| 813 | - Way
|
|---|
| 814 | - Relation
|
|---|
| [13cbe66] | 815 | comment:
|
|---|
| 816 | title: Comment of an item
|
|---|
| 817 | type: string
|
|---|
| 818 | point:
|
|---|
| 819 | title: 'Point of type [longitude, latitude]'
|
|---|
| 820 | type: array
|
|---|
| 821 | maxItems: 2
|
|---|
| 822 | minItems: 2
|
|---|
| 823 | items:
|
|---|
| 824 | type: number
|
|---|
| 825 | geoJsonType:
|
|---|
| 826 | title: Type of GeoJSON objects
|
|---|
| 827 | type: string
|
|---|
| 828 | enum:
|
|---|
| 829 | - Feature
|
|---|
| 830 | - Point
|
|---|
| [1a7f9da] | 831 | - FeatureCollection
|
|---|
| [13cbe66] | 832 | geoJsonPoint:
|
|---|
| 833 | type: object
|
|---|
| [72cc339] | 834 | description: GeoJson geometry
|
|---|
| [13cbe66] | 835 | externalDocs:
|
|---|
| 836 | url: 'http://geojson.org/geojson-spec.html#id2'
|
|---|
| 837 | properties:
|
|---|
| 838 | type:
|
|---|
| 839 | type: string
|
|---|
| 840 | coordinates:
|
|---|
| 841 | $ref: '#/components/schemas/point'
|
|---|
| [ec8d5d0] | 842 | sensorDepth:
|
|---|
| 843 | type: number
|
|---|
| [1cd45dd] | 844 | title: Depth of sensor beneath water level in cm (positive means below water)
|
|---|
| [ec8d5d0] | 845 | minimum: 0
|
|---|
| [be25db1] | 846 | User:
|
|---|
| 847 | title: User
|
|---|
| 848 | type: object
|
|---|
| 849 | properties:
|
|---|
| 850 | username:
|
|---|
| 851 | $ref: '#/components/schemas/username'
|
|---|
| 852 | email:
|
|---|
| 853 | type: string
|
|---|
| 854 | firstName:
|
|---|
| 855 | type: string
|
|---|
| 856 | lastName:
|
|---|
| 857 | type: string
|
|---|
| 858 | activated:
|
|---|
| 859 | type: boolean
|
|---|
| [bd0cb38] | 860 | licenseAccepted:
|
|---|
| 861 | type: boolean
|
|---|
| [be25db1] | 862 | apiKeys:
|
|---|
| 863 | $ref: '#/components/schemas/apiKeys'
|
|---|
| 864 | UserCreation:
|
|---|
| 865 | title: User
|
|---|
| 866 | type: object
|
|---|
| 867 | properties:
|
|---|
| 868 | username:
|
|---|
| 869 | $ref: '#/components/schemas/username'
|
|---|
| 870 | email:
|
|---|
| 871 | type: string
|
|---|
| 872 | firstName:
|
|---|
| 873 | type: string
|
|---|
| 874 | lastName:
|
|---|
| 875 | type: string
|
|---|
| 876 | password:
|
|---|
| 877 | type: string
|
|---|
| [bd0cb38] | 878 | licenseAccepted:
|
|---|
| 879 | type: boolean
|
|---|
| [be25db1] | 880 | required:
|
|---|
| 881 | - username
|
|---|
| 882 | - email
|
|---|
| 883 | - firstName
|
|---|
| 884 | - lastName
|
|---|
| 885 | - password
|
|---|
| [bd0cb38] | 886 | - licenseAccepted
|
|---|
| [ae2ff15] | 887 | example:
|
|---|
| 888 | username: 'john_doe'
|
|---|
| 889 | firstName: 'John'
|
|---|
| 890 | lastName: 'Doe'
|
|---|
| 891 | password: '1234'
|
|---|
| 892 | licenseAccepted: True
|
|---|
| 893 | email: 'john.doe@example.org'
|
|---|
| [3a89adb] | 894 | Water:
|
|---|
| 895 | title: Water
|
|---|
| 896 | type: object
|
|---|
| 897 | properties:
|
|---|
| [be25db1] | 898 | waterId:
|
|---|
| [041e464] | 899 | $ref: '#/components/schemas/itemId'
|
|---|
| [3a89adb] | 900 | name:
|
|---|
| [041e464] | 901 | $ref: '#/components/schemas/itemName'
|
|---|
| [3a89adb] | 902 | manager:
|
|---|
| 903 | $ref: '#/components/schemas/username'
|
|---|
| [be25db1] | 904 | osmId:
|
|---|
| [041e464] | 905 | $ref: '#/components/schemas/itemId'
|
|---|
| [be25db1] | 906 | osmType:
|
|---|
| 907 | $ref: '#/components/schemas/osmType'
|
|---|
| [13cbe66] | 908 | gauges:
|
|---|
| 909 | $ref: '#/components/schemas/Gauges'
|
|---|
| [72cc339] | 910 | logs:
|
|---|
| [ac11efe] | 911 | $ref: '#/components/schemas/logs'
|
|---|
| [3a89adb] | 912 | required:
|
|---|
| [be25db1] | 913 | - waterId
|
|---|
| [3a89adb] | 914 | - name
|
|---|
| 915 | WaterCreation:
|
|---|
| [ec8d5d0] | 916 | title: Water for Creation
|
|---|
| [3a89adb] | 917 | type: object
|
|---|
| 918 | properties:
|
|---|
| 919 | name:
|
|---|
| [041e464] | 920 | $ref: '#/components/schemas/itemName'
|
|---|
| [be25db1] | 921 | osmId:
|
|---|
| [041e464] | 922 | $ref: '#/components/schemas/itemId'
|
|---|
| [be25db1] | 923 | osmType:
|
|---|
| 924 | $ref: '#/components/schemas/osmType'
|
|---|
| [3a89adb] | 925 | required:
|
|---|
| 926 | - name
|
|---|
| [ae2ff15] | 927 | example:
|
|---|
| 928 | name: 'Water for auto generated tests'
|
|---|
| 929 | osmId: 1756854
|
|---|
| 930 | osmType: Relation
|
|---|
| [3a89adb] | 931 | waters:
|
|---|
| 932 | title: waters
|
|---|
| 933 | type: array
|
|---|
| 934 | items:
|
|---|
| 935 | $ref: '#/components/schemas/Water'
|
|---|
| [5e16955] | 936 | ReferenceWaterLevelGaugeHeight:
|
|---|
| 937 | title: Gauge Height of reference water level of a Gauge
|
|---|
| 938 | description: The gauge height (stage) for reference water level. The reference water level is the water level, the depth on the map is shown at. Therefore, the water depth of a LogEntry is transformed to this referenceWaterLevel, with help of the gaugeHeight of the Log related to the LogEntry.
|
|---|
| 939 | type: number
|
|---|
| 940 | format: float
|
|---|
| [13cbe66] | 941 | Gauge:
|
|---|
| 942 | title: Gauge
|
|---|
| 943 | type: object
|
|---|
| 944 | properties:
|
|---|
| 945 | gaugeId:
|
|---|
| 946 | $ref: '#/components/schemas/itemId'
|
|---|
| 947 | name:
|
|---|
| 948 | $ref: '#/components/schemas/itemName'
|
|---|
| 949 | manager:
|
|---|
| 950 | $ref: '#/components/schemas/username'
|
|---|
| 951 | location:
|
|---|
| 952 | $ref: '#/components/schemas/point'
|
|---|
| [5e16955] | 953 | referenceWaterLevelGaugeHeight:
|
|---|
| 954 | $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
|
|---|
| [72cc339] | 955 | logs:
|
|---|
| [ac11efe] | 956 | $ref: '#/components/schemas/logs'
|
|---|
| [13cbe66] | 957 | comment:
|
|---|
| 958 | $ref: '#/components/schemas/comment'
|
|---|
| 959 | required:
|
|---|
| 960 | - gaugeId
|
|---|
| 961 | - name
|
|---|
| 962 | - location
|
|---|
| [5e16955] | 963 | - referenceWaterLevelGaugeHeight
|
|---|
| [13cbe66] | 964 | GaugeCreation:
|
|---|
| 965 | title: Gauge for Creation
|
|---|
| 966 | type: object
|
|---|
| 967 | properties:
|
|---|
| 968 | name:
|
|---|
| 969 | $ref: '#/components/schemas/itemName'
|
|---|
| 970 | location:
|
|---|
| 971 | $ref: '#/components/schemas/point'
|
|---|
| [5e16955] | 972 | referenceWaterLevelGaugeHeight:
|
|---|
| 973 | $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
|
|---|
| [ec9e811] | 974 | water:
|
|---|
| [ae2ff15] | 975 | $ref: '#/components/schemas/itemId'
|
|---|
| [13cbe66] | 976 | comment:
|
|---|
| 977 | $ref: '#/components/schemas/comment'
|
|---|
| 978 | required:
|
|---|
| 979 | - name
|
|---|
| 980 | - location
|
|---|
| [ae2ff15] | 981 | example:
|
|---|
| 982 | name: 'Gauge for auto generated tests'
|
|---|
| 983 | location:
|
|---|
| 984 | - 90.136111
|
|---|
| 985 | - 29.934722
|
|---|
| 986 | water: 1
|
|---|
| 987 | referenceWaterLevelGaugeHeight: 666
|
|---|
| [13cbe66] | 988 | Gauges:
|
|---|
| 989 | title: Gauges
|
|---|
| 990 | type: array
|
|---|
| 991 | items:
|
|---|
| 992 | $ref: '#/components/schemas/Gauge'
|
|---|
| 993 | GaugeGeoJson:
|
|---|
| [72cc339] | 994 | title: Gauge in GeoJson format
|
|---|
| [13cbe66] | 995 | type: object
|
|---|
| 996 | properties:
|
|---|
| 997 | type:
|
|---|
| 998 | $ref: '#/components/schemas/geoJsonType'
|
|---|
| 999 | geometry:
|
|---|
| 1000 | $ref: '#/components/schemas/geoJsonPoint'
|
|---|
| 1001 | properties:
|
|---|
| 1002 | type: object
|
|---|
| 1003 | properties:
|
|---|
| 1004 | name:
|
|---|
| 1005 | $ref: '#/components/schemas/itemName'
|
|---|
| 1006 | manager:
|
|---|
| 1007 | $ref: '#/components/schemas/username'
|
|---|
| [5e16955] | 1008 | referenceWaterLevelGaugeHeight:
|
|---|
| 1009 | $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
|
|---|
| [13cbe66] | 1010 | comment:
|
|---|
| 1011 | $ref: '#/components/schemas/comment'
|
|---|
| 1012 | required:
|
|---|
| 1013 | - name
|
|---|
| 1014 | required:
|
|---|
| 1015 | - type
|
|---|
| 1016 | - geometry
|
|---|
| 1017 | - properties
|
|---|
| 1018 | GaugesGeoJson:
|
|---|
| 1019 | title: Gauges in GeoJson format
|
|---|
| 1020 | type: array
|
|---|
| 1021 | items:
|
|---|
| 1022 | $ref: '#/components/schemas/GaugeGeoJson'
|
|---|
| [ec8d5d0] | 1023 | Device:
|
|---|
| 1024 | title: Device
|
|---|
| 1025 | type: object
|
|---|
| 1026 | properties:
|
|---|
| 1027 | deviceId:
|
|---|
| 1028 | $ref: '#/components/schemas/itemId'
|
|---|
| 1029 | name:
|
|---|
| 1030 | $ref: '#/components/schemas/itemName'
|
|---|
| 1031 | sensorDepth:
|
|---|
| 1032 | $ref: '#/components/schemas/sensorDepth'
|
|---|
| [ac11efe] | 1033 | logs:
|
|---|
| 1034 | $ref: '#/components/schemas/logs'
|
|---|
| [ec8d5d0] | 1035 | comment:
|
|---|
| [1cd45dd] | 1036 | $ref: '#/components/schemas/comment'
|
|---|
| [ec8d5d0] | 1037 | required:
|
|---|
| 1038 | - deviceId
|
|---|
| 1039 | - name
|
|---|
| 1040 | - sensorDepth
|
|---|
| 1041 | DeviceCreation:
|
|---|
| 1042 | title: Device for Creation
|
|---|
| 1043 | type: object
|
|---|
| 1044 | properties:
|
|---|
| 1045 | name:
|
|---|
| 1046 | $ref: '#/components/schemas/itemName'
|
|---|
| 1047 | sensorDepth:
|
|---|
| 1048 | $ref: '#/components/schemas/sensorDepth'
|
|---|
| 1049 | comment:
|
|---|
| [1cd45dd] | 1050 | $ref: '#/components/schemas/comment'
|
|---|
| [ec8d5d0] | 1051 | required:
|
|---|
| 1052 | - name
|
|---|
| 1053 | - sensorDepth
|
|---|
| [ae2ff15] | 1054 | example:
|
|---|
| 1055 | name: 'Device for auto generated tests'
|
|---|
| 1056 | sensorDepth: 0.2
|
|---|
| 1057 | comment: 'Device for auto generated tests'
|
|---|
| [ec8d5d0] | 1058 | devices:
|
|---|
| 1059 | title: Devices
|
|---|
| 1060 | type: array
|
|---|
| 1061 | items:
|
|---|
| 1062 | $ref: '#/components/schemas/Device'
|
|---|
| [f601952] | 1063 | GaugeHeight:
|
|---|
| [5e16955] | 1064 | title: 'Gauge height (stage) of the gauge, at the time of measuring'
|
|---|
| [72cc339] | 1065 | type: number
|
|---|
| 1066 | format: float
|
|---|
| 1067 | LogEntry:
|
|---|
| 1068 | title: Measurement in a Log
|
|---|
| 1069 | type: object
|
|---|
| 1070 | properties:
|
|---|
| 1071 | datetime:
|
|---|
| 1072 | type: string
|
|---|
| 1073 | format: date-time
|
|---|
| 1074 | location:
|
|---|
| 1075 | $ref: '#/components/schemas/point'
|
|---|
| 1076 | waterDepth:
|
|---|
| 1077 | title: Measured water depth at current position
|
|---|
| 1078 | type: number
|
|---|
| 1079 | format: float
|
|---|
| [ac11efe] | 1080 | required:
|
|---|
| 1081 | - datetime
|
|---|
| 1082 | - location
|
|---|
| [72cc339] | 1083 | LogMetaData:
|
|---|
| 1084 | title: 'Metadata of a log, without log entries'
|
|---|
| 1085 | type: object
|
|---|
| 1086 | properties:
|
|---|
| 1087 | logId:
|
|---|
| 1088 | $ref: '#/components/schemas/itemId'
|
|---|
| 1089 | submitter:
|
|---|
| [ac11efe] | 1090 | $ref: '#/components/schemas/username'
|
|---|
| [72cc339] | 1091 | water:
|
|---|
| [ec9e811] | 1092 | $ref: '#/components/schemas/itemBase'
|
|---|
| [72cc339] | 1093 | device:
|
|---|
| [ec9e811] | 1094 | $ref: '#/components/schemas/itemBase'
|
|---|
| [72cc339] | 1095 | gauge:
|
|---|
| [ec9e811] | 1096 | $ref: '#/components/schemas/itemBase'
|
|---|
| [f601952] | 1097 | gaugeHeight:
|
|---|
| 1098 | $ref: '#/components/schemas/GaugeHeight'
|
|---|
| [72cc339] | 1099 | start:
|
|---|
| [ac11efe] | 1100 | title: Date and Time of the first log entry in UTC timezone
|
|---|
| [72cc339] | 1101 | type: string
|
|---|
| 1102 | format: date-time
|
|---|
| 1103 | end:
|
|---|
| [ac11efe] | 1104 | title: Date and Time of the last log entry in UTC timezone
|
|---|
| [72cc339] | 1105 | type: string
|
|---|
| 1106 | format: date-time
|
|---|
| [306f18a] | 1107 | processingState:
|
|---|
| [f601952] | 1108 | $ref: '#/components/schemas/itemBase'
|
|---|
| [72cc339] | 1109 | entriesCount:
|
|---|
| 1110 | title: Number of measurings in the log
|
|---|
| 1111 | type: integer
|
|---|
| 1112 | format: int64
|
|---|
| 1113 | comment:
|
|---|
| 1114 | $ref: '#/components/schemas/comment'
|
|---|
| 1115 | required:
|
|---|
| [f601952] | 1116 | - gaugeHeight
|
|---|
| [72cc339] | 1117 | - start
|
|---|
| 1118 | - end
|
|---|
| 1119 | - entriesCount
|
|---|
| 1120 | Log:
|
|---|
| 1121 | title: A collection of LogEntries
|
|---|
| 1122 | type: object
|
|---|
| 1123 | properties:
|
|---|
| 1124 | metaData:
|
|---|
| 1125 | $ref: '#/components/schemas/LogMetaData'
|
|---|
| 1126 | entries:
|
|---|
| 1127 | title: Log entries
|
|---|
| 1128 | type: array
|
|---|
| 1129 | items:
|
|---|
| 1130 | $ref: '#/components/schemas/LogEntry'
|
|---|
| 1131 | required:
|
|---|
| 1132 | - metaData
|
|---|
| 1133 | - entries
|
|---|
| 1134 | LogCreation:
|
|---|
| 1135 | title: Log for Creation
|
|---|
| 1136 | type: object
|
|---|
| 1137 | properties:
|
|---|
| 1138 | water:
|
|---|
| [ac11efe] | 1139 | $ref: '#/components/schemas/itemId'
|
|---|
| [72cc339] | 1140 | device:
|
|---|
| [ac11efe] | 1141 | $ref: '#/components/schemas/itemId'
|
|---|
| [72cc339] | 1142 | gauge:
|
|---|
| [ac11efe] | 1143 | $ref: '#/components/schemas/itemId'
|
|---|
| [f601952] | 1144 | gaugeHeight:
|
|---|
| 1145 | $ref: '#/components/schemas/GaugeHeight'
|
|---|
| [72cc339] | 1146 | comment:
|
|---|
| 1147 | $ref: '#/components/schemas/comment'
|
|---|
| 1148 | required:
|
|---|
| 1149 | - water
|
|---|
| 1150 | - device
|
|---|
| 1151 | - gauge
|
|---|
| [f601952] | 1152 | - gaugeHeight
|
|---|
| [ae2ff15] | 1153 | example:
|
|---|
| 1154 | water: 1
|
|---|
| 1155 | device: 1
|
|---|
| 1156 | gauge: 1
|
|---|
| 1157 | gaugeHeight: 66
|
|---|
| 1158 | comment: 'LogCreation for auto generated tests'
|
|---|
| [72cc339] | 1159 | logs:
|
|---|
| 1160 | title: Logs
|
|---|
| 1161 | type: array
|
|---|
| 1162 | items:
|
|---|
| [ac11efe] | 1163 | $ref: '#/components/schemas/LogMetaData'
|
|---|
| [72cc339] | 1164 | LogGeoJson:
|
|---|
| [1a7f9da] | 1165 | title: FeatureCollection representing a Log in GeoJson format
|
|---|
| 1166 | type: object
|
|---|
| 1167 | properties:
|
|---|
| 1168 | type:
|
|---|
| 1169 | $ref: '#/components/schemas/geoJsonType'
|
|---|
| 1170 | features:
|
|---|
| 1171 | type: array
|
|---|
| 1172 | items:
|
|---|
| 1173 | $ref: '#/components/schemas/LogEntryGeoJson'
|
|---|
| 1174 | required:
|
|---|
| 1175 | - type
|
|---|
| 1176 | - features
|
|---|
| 1177 | LogEntryGeoJson:
|
|---|
| 1178 | title: Feature representing LogEntry in GeoJson format
|
|---|
| [72cc339] | 1179 | type: object
|
|---|
| 1180 | properties:
|
|---|
| 1181 | type:
|
|---|
| 1182 | $ref: '#/components/schemas/geoJsonType'
|
|---|
| 1183 | geometry:
|
|---|
| [1a7f9da] | 1184 | $ref: '#/components/schemas/geoJsonPoint'
|
|---|
| [72cc339] | 1185 | properties:
|
|---|
| 1186 | type: object
|
|---|
| [1a7f9da] | 1187 | properties:
|
|---|
| 1188 | datetime:
|
|---|
| 1189 | type: string
|
|---|
| 1190 | format: date-time
|
|---|
| 1191 | waterDepth:
|
|---|
| 1192 | type: number
|
|---|
| 1193 | format: float
|
|---|
| 1194 | required:
|
|---|
| 1195 | - datetime
|
|---|
| [72cc339] | 1196 | required:
|
|---|
| 1197 | - type
|
|---|
| 1198 | - geometry
|
|---|
| 1199 | - properties
|
|---|
| [5e16955] | 1200 | tileZoomlevel:
|
|---|
| 1201 | title: Zoomlevel of requested Tile
|
|---|
| 1202 | type: integer
|
|---|
| 1203 | format: int32
|
|---|
| 1204 | minimum: 0
|
|---|
| 1205 | maximum: 19
|
|---|
| [3a89adb] | 1206 | HttpError:
|
|---|
| 1207 | title: HTTP Error Response Object
|
|---|
| 1208 | type: object
|
|---|
| 1209 | properties:
|
|---|
| [1cd45dd] | 1210 | type:
|
|---|
| [72cc339] | 1211 | type: string
|
|---|
| [1cd45dd] | 1212 | title:
|
|---|
| [72cc339] | 1213 | type: string
|
|---|
| [1cd45dd] | 1214 | detail:
|
|---|
| [72cc339] | 1215 | type: string
|
|---|
| [1cd45dd] | 1216 | instance:
|
|---|
| [72cc339] | 1217 | type: string
|
|---|
| [3a89adb] | 1218 | required:
|
|---|
| [1cd45dd] | 1219 | - type
|
|---|
| 1220 | - title
|
|---|
| 1221 | - detail
|
|---|
| 1222 | - instance
|
|---|
| [3a89adb] | 1223 | parameters:
|
|---|
| 1224 | orderBy:
|
|---|
| [ec9e811] | 1225 | name: order_by
|
|---|
| [3a89adb] | 1226 | in: query
|
|---|
| 1227 | description: 'Order by field: name'
|
|---|
| 1228 | schema:
|
|---|
| 1229 | type: string
|
|---|
| 1230 | default: name
|
|---|
| [13cbe66] | 1231 | example: name
|
|---|
| [3a89adb] | 1232 | order:
|
|---|
| 1233 | name: order
|
|---|
| 1234 | in: query
|
|---|
| 1235 | description: Order
|
|---|
| 1236 | schema:
|
|---|
| 1237 | $ref: '#/components/schemas/order'
|
|---|
| [be25db1] | 1238 | example: ''
|
|---|
| [3a89adb] | 1239 | offset:
|
|---|
| 1240 | name: offset
|
|---|
| 1241 | in: query
|
|---|
| 1242 | description: >-
|
|---|
| 1243 | Skip over a number of elements by specifying an offset value for the
|
|---|
| 1244 | query
|
|---|
| 1245 | schema:
|
|---|
| 1246 | type: integer
|
|---|
| 1247 | format: int32
|
|---|
| 1248 | default: 0
|
|---|
| 1249 | example: 0
|
|---|
| 1250 | limit:
|
|---|
| 1251 | name: limit
|
|---|
| 1252 | in: query
|
|---|
| 1253 | description: Limit the number of elements on the response
|
|---|
| 1254 | style: form
|
|---|
| 1255 | explode: true
|
|---|
| 1256 | schema:
|
|---|
| 1257 | type: integer
|
|---|
| 1258 | format: int32
|
|---|
| 1259 | default: 10
|
|---|
| 1260 | example: 10
|
|---|
| 1261 | examples:
|
|---|
| [be25db1] | 1262 | User:
|
|---|
| 1263 | value:
|
|---|
| 1264 | username: jane
|
|---|
| 1265 | email: jane@example.org
|
|---|
| 1266 | firstName: Jane
|
|---|
| 1267 | lastName: Doe
|
|---|
| [ae2ff15] | 1268 | activated: True
|
|---|
| [be25db1] | 1269 | apiKeys:
|
|---|
| 1270 | - ApiKey4701
|
|---|
| 1271 | UserCreation:
|
|---|
| 1272 | value:
|
|---|
| 1273 | username: richard
|
|---|
| 1274 | email: richard@examle.org
|
|---|
| 1275 | firstName: Richard
|
|---|
| 1276 | lastName: Roe
|
|---|
| 1277 | password: sdfl.1238_ASDkeil?
|
|---|
| [ae2ff15] | 1278 | licenseAccepted: True
|
|---|
| [3a89adb] | 1279 | Water:
|
|---|
| 1280 | value:
|
|---|
| [be25db1] | 1281 | waterId: 1
|
|---|
| [3a89adb] | 1282 | name: Mississippi
|
|---|
| [be25db1] | 1283 | osmId: 1756854
|
|---|
| 1284 | osmType: R
|
|---|
| [3a89adb] | 1285 | summary: A water example object
|
|---|
| 1286 | WaterCreation:
|
|---|
| 1287 | value:
|
|---|
| 1288 | name: Mississippi
|
|---|
| [be25db1] | 1289 | osmId: 1756854
|
|---|
| [13cbe66] | 1290 | osmType: Relation
|
|---|
| [3a89adb] | 1291 | summary: A water example object for creation of a water
|
|---|
| 1292 | waters:
|
|---|
| 1293 | value:
|
|---|
| [be25db1] | 1294 | - waterId: 1
|
|---|
| [13cbe66] | 1295 | name: Mississippi
|
|---|
| [be25db1] | 1296 | osmId: 1756854
|
|---|
| [13cbe66] | 1297 | osmType: Relation
|
|---|
| [be25db1] | 1298 | - waterId: 2
|
|---|
| [13cbe66] | 1299 | name: Bodensee
|
|---|
| [3a89adb] | 1300 | summary: A sample list with waters
|
|---|
| [13cbe66] | 1301 | Gauge:
|
|---|
| 1302 | value:
|
|---|
| 1303 | gaugeId: 1
|
|---|
| 1304 | name: New Orleans
|
|---|
| 1305 | manager: jane
|
|---|
| 1306 | location:
|
|---|
| 1307 | - 90.136111
|
|---|
| 1308 | - 29.934722
|
|---|
| [5e16955] | 1309 | referenceWaterLevelGaugeHeight: 5.1
|
|---|
| [13cbe66] | 1310 | comment: Gauge for Mississippi in New Orleans
|
|---|
| 1311 | Gauges:
|
|---|
| 1312 | value:
|
|---|
| 1313 | - gaugeId: 1
|
|---|
| 1314 | name: New Orleans
|
|---|
| 1315 | manager: jane
|
|---|
| 1316 | location:
|
|---|
| 1317 | - 90.136111
|
|---|
| 1318 | - 29.934722
|
|---|
| [5e16955] | 1319 | referenceWaterLevelGaugeHeight: 5.1
|
|---|
| [13cbe66] | 1320 | summary: A sample list of gauges
|
|---|
| 1321 | GaugeGeoJson:
|
|---|
| 1322 | value:
|
|---|
| 1323 | type: Feature
|
|---|
| 1324 | geometry:
|
|---|
| 1325 | type: Point
|
|---|
| 1326 | coordinates:
|
|---|
| 1327 | - 90.136111
|
|---|
| [ec8d5d0] | 1328 | - 29.934722
|
|---|
| [13cbe66] | 1329 | properties:
|
|---|
| 1330 | name: New Orleans
|
|---|
| 1331 | manager: jane
|
|---|
| [5e16955] | 1332 | referenceWaterLevelGaugeHeight: 5.1
|
|---|
| [13cbe66] | 1333 | comment: Gauge for Mississippi in New Orleans
|
|---|
| 1334 | GaugesGeoJson:
|
|---|
| 1335 | value:
|
|---|
| 1336 | - type: Feature
|
|---|
| 1337 | geometry:
|
|---|
| 1338 | type: Point
|
|---|
| 1339 | coordinates:
|
|---|
| 1340 | - 90.136111
|
|---|
| [ec8d5d0] | 1341 | - 29.934722
|
|---|
| [13cbe66] | 1342 | properties:
|
|---|
| 1343 | name: New Orleans
|
|---|
| 1344 | manager: jane
|
|---|
| [5e16955] | 1345 | referenceWaterLevelGaugeHeight: 5.1
|
|---|
| [13cbe66] | 1346 | comment: Gauge for Mississippi in New Orleans
|
|---|
| 1347 | summary: A sample list of gauges in GeoJson format
|
|---|
| [ec8d5d0] | 1348 | Device:
|
|---|
| 1349 | value:
|
|---|
| 1350 | deviceId: 1
|
|---|
| 1351 | name: Lovely Boat
|
|---|
| 1352 | sensorDepth: 0.2
|
|---|
| 1353 | comment: Really a pleasure to measure
|
|---|
| 1354 | summary: A sample device
|
|---|
| 1355 | devices:
|
|---|
| 1356 | value:
|
|---|
| 1357 | - deviceId: 1
|
|---|
| 1358 | name: Lovely Boat
|
|---|
| 1359 | sensorDepth: 0.2
|
|---|
| 1360 | comment: Really a pleasure to measure
|
|---|
| [72cc339] | 1361 | LogMetaData:
|
|---|
| 1362 | value:
|
|---|
| 1363 | logId: 1
|
|---|
| 1364 | submitter:
|
|---|
| 1365 | userId: 1
|
|---|
| 1366 | name: Jane
|
|---|
| 1367 | device:
|
|---|
| 1368 | deviceId: 1
|
|---|
| 1369 | name: Lovely Boat
|
|---|
| 1370 | sensorDepth: 0.2
|
|---|
| 1371 | gauge:
|
|---|
| 1372 | gaugeId: 1
|
|---|
| 1373 | name: New Orleans
|
|---|
| 1374 | manager: jane
|
|---|
| 1375 | location:
|
|---|
| 1376 | - 90.136111
|
|---|
| 1377 | - 29.934722
|
|---|
| [f601952] | 1378 | gaugeHeight: 8
|
|---|
| [72cc339] | 1379 | start: 2017-07-21T10:32:28.000Z
|
|---|
| 1380 | end: 2017-07-21T17:32:28.000Z
|
|---|
| 1381 | entriesCount: 12600
|
|---|
| 1382 | Log:
|
|---|
| 1383 | value:
|
|---|
| 1384 | metaData:
|
|---|
| 1385 | logId: 1
|
|---|
| 1386 | submitter:
|
|---|
| 1387 | userId: 1
|
|---|
| 1388 | name: Jane
|
|---|
| 1389 | device:
|
|---|
| 1390 | deviceId: 1
|
|---|
| 1391 | name: Lovely Boat
|
|---|
| 1392 | sensorDepth: 0.2
|
|---|
| 1393 | gauge:
|
|---|
| 1394 | gaugeId: 1
|
|---|
| 1395 | name: New Orleans
|
|---|
| 1396 | manager: jane
|
|---|
| 1397 | location:
|
|---|
| 1398 | - 90.136111
|
|---|
| 1399 | - 29.934722
|
|---|
| [f601952] | 1400 | gaugeHeight: 8
|
|---|
| [72cc339] | 1401 | start: 2017-07-21T10:32:28.000Z
|
|---|
| 1402 | end: 2017-07-21T17:32:28.000Z
|
|---|
| 1403 | entriesCount: 1
|
|---|
| [ec9e811] | 1404 | entries:
|
|---|
| 1405 | - datetime: null
|
|---|
| 1406 | location:
|
|---|
| 1407 | - 90.136111
|
|---|
| 1408 | - 29.934722
|
|---|
| 1409 | waterDepth: 10
|
|---|
| [ae2ff15] | 1410 | LogCreation:
|
|---|
| 1411 | value:
|
|---|
| 1412 | water: 1
|
|---|
| 1413 | device: 1
|
|---|
| 1414 | gauge: 1
|
|---|
| 1415 | gaugeHeight: 666
|
|---|
| 1416 | comment: 'This is an Example for LogCreation'
|
|---|
| [72cc339] | 1417 | LogGeoJson:
|
|---|
| 1418 | value:
|
|---|
| [1a7f9da] | 1419 | type: FeatureCollection
|
|---|
| 1420 | features:
|
|---|
| 1421 | - geometry:
|
|---|
| 1422 | coordinates:
|
|---|
| 1423 | - 90.136111
|
|---|
| 1424 | - 29.934722
|
|---|
| 1425 | type: 'Point'
|
|---|
| 1426 | properties:
|
|---|
| [72cc339] | 1427 | datetime: 2017-07-21T10:32:28.000Z
|
|---|
| 1428 | waterDepth: 10
|
|---|
| [1a7f9da] | 1429 | - geometry:
|
|---|
| 1430 | coordinates:
|
|---|
| 1431 | - 90.236111
|
|---|
| 1432 | - 30.034722
|
|---|
| 1433 | type: Point
|
|---|
| 1434 | properties:
|
|---|
| [72cc339] | 1435 | datetime: 2017-07-21T11:32:28.000Z
|
|---|
| 1436 | waterDepth: 5
|
|---|
| 1437 | logs:
|
|---|
| 1438 | value:
|
|---|
| 1439 | - logId: 1
|
|---|
| 1440 | submitter:
|
|---|
| 1441 | userId: 1
|
|---|
| 1442 | name: Jane
|
|---|
| 1443 | device:
|
|---|
| 1444 | deviceId: 1
|
|---|
| 1445 | name: Lovely Boat
|
|---|
| 1446 | sensorDepth: 0.2
|
|---|
| 1447 | gauge:
|
|---|
| 1448 | gaugeId: 1
|
|---|
| 1449 | name: New Orleans
|
|---|
| 1450 | manager: jane
|
|---|
| 1451 | location:
|
|---|
| 1452 | - 90.136111
|
|---|
| 1453 | - 29.934722
|
|---|
| [f601952] | 1454 | gaugeHeight: 8
|
|---|
| [72cc339] | 1455 | start: 2017-07-21T10:32:28.000Z
|
|---|
| 1456 | end: 2017-07-21T17:32:28.000Z
|
|---|
| 1457 | entriesCount: 12600
|
|---|
| [3a89adb] | 1458 | HttpError:
|
|---|
| 1459 | value:
|
|---|
| [72cc339] | 1460 | type: 'http://example.com/waters/not-found'
|
|---|
| 1461 | title: Water 1 not found
|
|---|
| 1462 | detail: There is no water with id 1 in database
|
|---|
| 1463 | instance: 'http://example.net/waters/1'
|
|---|
| [3a89adb] | 1464 | responses:
|
|---|
| 1465 | BadRequest:
|
|---|
| 1466 | description: Bad Request (400)
|
|---|
| 1467 | content:
|
|---|
| [1cd45dd] | 1468 | application/problem+json:
|
|---|
| [3a89adb] | 1469 | schema:
|
|---|
| 1470 | $ref: '#/components/schemas/HttpError'
|
|---|
| 1471 | examples:
|
|---|
| 1472 | HttpError:
|
|---|
| 1473 | $ref: '#/components/examples/HttpError'
|
|---|
| 1474 | Unauthorized:
|
|---|
| 1475 | description: Unauthorized (401) acces to resource
|
|---|
| 1476 | content:
|
|---|
| [1cd45dd] | 1477 | application/problem+json:
|
|---|
| [3a89adb] | 1478 | schema:
|
|---|
| 1479 | $ref: '#/components/schemas/HttpError'
|
|---|
| 1480 | examples:
|
|---|
| 1481 | HttpError:
|
|---|
| 1482 | $ref: '#/components/examples/HttpError'
|
|---|
| 1483 | NotFound:
|
|---|
| [5e16955] | 1484 | description: Item with given Id not found
|
|---|
| 1485 | content:
|
|---|
| 1486 | application/problem+json:
|
|---|
| 1487 | schema:
|
|---|
| 1488 | $ref: '#/components/schemas/HttpError'
|
|---|
| 1489 | examples:
|
|---|
| 1490 | HttpError:
|
|---|
| 1491 | $ref: '#/components/examples/HttpError'
|
|---|
| 1492 | InternalServerError:
|
|---|
| 1493 | description: Internal Server Error (HTTP Code 500)
|
|---|
| [3a89adb] | 1494 | content:
|
|---|
| [1cd45dd] | 1495 | application/problem+json:
|
|---|
| [3a89adb] | 1496 | schema:
|
|---|
| 1497 | $ref: '#/components/schemas/HttpError'
|
|---|
| 1498 | examples:
|
|---|
| 1499 | HttpError:
|
|---|
| 1500 | $ref: '#/components/examples/HttpError'
|
|---|
| 1501 | tags:
|
|---|
| 1502 | - name: waters
|
|---|
| 1503 | description: >-
|
|---|
| 1504 | A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North
|
|---|
| 1505 | Sea)
|
|---|
| [be25db1] | 1506 | - name: users
|
|---|
| [13cbe66] | 1507 | description: All actions used to manage users and api keys
|
|---|
| [ec8d5d0] | 1508 | - name: devices
|
|---|
| 1509 | description: All actions used to manage devices of an user
|
|---|
| [ac11efe] | 1510 | - name: logs
|
|---|
| [ec9e811] | 1511 | description: 'All actions used to manage logs of an water, device, gauge or user'
|
|---|
| [5e16955] | 1512 | - name: tiles
|
|---|
| 1513 | description: Tile serving
|
|---|