Changeset ac11efe for src/mapservice/openapi.yaml
- Timestamp:
- Nov 24, 2019, 6:14:09 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- f5feba5
- Parents:
- 72cc339
- File:
-
- 1 edited
-
src/mapservice/openapi.yaml (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/openapi.yaml
r72cc339 rac11efe 377 377 '404': 378 378 $ref: '#/components/responses/NotFound' 379 /devices: 380 get: 381 description: Returns all devices of user 382 tags: 383 - devices 384 summary: Find devices by id 385 operationId: devicesGet 386 security: 387 - basicAuth: [] 388 - apiKeyAuth: [] 389 parameters: 390 - name: name 391 in: query 392 schema: 393 $ref: '#/components/schemas/itemName' 394 example: Love 395 - $ref: '#/components/parameters/orderBy' 396 - $ref: '#/components/parameters/offset' 397 - $ref: '#/components/parameters/limit' 398 responses: 399 '200': 400 description: OK 401 content: 402 application/json: 403 schema: 404 $ref: '#/components/schemas/devices' 405 examples: 406 Devices: 407 $ref: '#/components/examples/devices' 408 '404': 409 $ref: '#/components/responses/NotFound' 410 post: 411 description: Adds a new device to the database 412 tags: 413 - devices 414 summary: Add a new device 415 operationId: devicesCreate 416 security: 417 - basicAuth: [] 418 - apiKeyAuth: [] 419 requestBody: 420 content: 421 application/json: 422 schema: 423 $ref: '#/components/schemas/DeviceCreation' 424 example: 425 name: Lovely Boat 426 sensorDepth: 2 427 responses: 428 '201': 429 description: Device created 430 content: 431 application/json: 432 schema: 433 $ref: '#/components/schemas/Device' 434 examples: 435 Device: 436 $ref: '#/components/examples/Device' 437 '400': 438 $ref: '#/components/responses/BadRequest' 439 '401': 440 $ref: '#/components/responses/Unauthorized' 441 '/devices/{id}': 442 get: 443 description: Returns the device identified by id 444 tags: 445 - devices 446 summary: Represents a device 447 operationId: devicesGetById 448 security: 449 - basicAuth: [] 450 - apiKeyAuth: [] 451 parameters: 452 - name: id 453 in: path 454 description: Item ID 455 required: true 456 schema: 457 $ref: '#/components/schemas/itemId' 458 responses: 459 '200': 460 description: OK 461 content: 462 application/json: 463 schema: 464 $ref: '#/components/schemas/Device' 465 examples: 466 Water: 467 $ref: '#/components/examples/Device' 468 '404': 469 $ref: '#/components/responses/NotFound' 470 delete: 471 description: Deletes given device and returns remaining devices of the user 472 tags: 473 - devices 474 summary: Deletes device 475 operationId: devicesDeviceDelete 476 security: 477 - basicAuth: [] 478 - apiKeyAuth: [] 479 parameters: 480 - name: id 481 in: path 482 description: Item id 483 required: true 484 schema: 485 $ref: '#/components/schemas/itemId' 486 example: 1 487 responses: 488 '200': 489 description: OK 490 content: 491 application/json: 492 schema: 493 $ref: '#/components/schemas/devices' 494 example: 495 Devices: 496 $ref: '#/components/examples/devices' 497 '400': 498 $ref: '#/components/responses/BadRequest' 499 '401': 500 $ref: '#/components/responses/Unauthorized' 501 '404': 502 $ref: '#/components/responses/NotFound' 503 '/logs': 379 504 post: 380 505 description: Adds a new log to the database 381 506 tags: 382 - waters507 - logs 383 508 summary: Add a new log 384 operationId: watersCreateLog 385 parameters: 386 - name: water_id 387 in: path 388 description: Water ID 389 required: true 390 schema: 391 $ref: '#/components/schemas/itemId' 392 - name: gauge_id 393 in: path 394 description: Gauge ID 395 required: true 396 schema: 397 $ref: '#/components/schemas/itemId' 509 operationId: logsLogCreate 398 510 security: 399 511 - basicAuth: [] … … 424 536 '401': 425 537 $ref: '#/components/responses/Unauthorized' 426 '/ waters/{water_id}/gauges/{gauge_id}/{log_id}':538 '/logs/{log_id}': 427 539 get: 428 540 description: Returns the log identified by id 429 541 tags: 430 - waters542 - logs 431 543 summary: Represents a log 432 operationId: watersLogGetById544 operationId: logsLogGetById 433 545 parameters: 434 - name: water_id435 in: path436 description: Water ID437 required: true438 schema:439 $ref: '#/components/schemas/itemId'440 - name: gauge_id441 in: path442 description: Gauge ID443 required: true444 schema:445 $ref: '#/components/schemas/itemId'446 546 - name: log_id 447 547 in: path … … 473 573 description: Deletes given log and returns remaining logs of the gauge 474 574 tags: 475 - waters575 - logs 476 576 summary: Deletes log 477 operationId: watersLogDelete577 operationId: logsLogDelete 478 578 security: 479 579 - basicAuth: [] 480 580 - apiKeyAuth: [] 481 581 parameters: 482 - name: water_id483 in: path484 description: Water ID485 required: true486 schema:487 $ref: '#/components/schemas/itemId'488 - name: gauge_id489 in: path490 description: Gauge ID491 required: true492 schema:493 $ref: '#/components/schemas/itemId'494 582 - name: log_id 495 583 in: path … … 508 596 Devices: 509 597 $ref: '#/components/examples/logs' 510 '400':511 $ref: '#/components/responses/BadRequest'512 '401':513 $ref: '#/components/responses/Unauthorized'514 '404':515 $ref: '#/components/responses/NotFound'516 /devices:517 get:518 description: Returns all devices of user519 tags:520 - devices521 summary: Find devices by id522 operationId: devicesGet523 security:524 - basicAuth: []525 - apiKeyAuth: []526 parameters:527 - name: name528 in: query529 schema:530 $ref: '#/components/schemas/itemName'531 example: Love532 - $ref: '#/components/parameters/orderBy'533 - $ref: '#/components/parameters/offset'534 - $ref: '#/components/parameters/limit'535 responses:536 '200':537 description: OK538 content:539 application/json:540 schema:541 $ref: '#/components/schemas/devices'542 examples:543 Devices:544 $ref: '#/components/examples/devices'545 '404':546 $ref: '#/components/responses/NotFound'547 post:548 description: Adds a new device to the database549 tags:550 - devices551 summary: Add a new device552 operationId: devicesCreate553 security:554 - basicAuth: []555 - apiKeyAuth: []556 requestBody:557 content:558 application/json:559 schema:560 $ref: '#/components/schemas/DeviceCreation'561 example:562 name: Lovely Boat563 sensorDepth: 2564 responses:565 '201':566 description: Device created567 content:568 application/json:569 schema:570 $ref: '#/components/schemas/Device'571 examples:572 Device:573 $ref: '#/components/examples/Device'574 '400':575 $ref: '#/components/responses/BadRequest'576 '401':577 $ref: '#/components/responses/Unauthorized'578 '/devices/{id}':579 get:580 description: Returns the device identified by id581 tags:582 - devices583 summary: Represents a device584 operationId: devicesGetById585 security:586 - basicAuth: []587 - apiKeyAuth: []588 parameters:589 - name: id590 in: path591 description: Item ID592 required: true593 schema:594 $ref: '#/components/schemas/itemId'595 responses:596 '200':597 description: OK598 content:599 application/json:600 schema:601 $ref: '#/components/schemas/Device'602 examples:603 Water:604 $ref: '#/components/examples/Device'605 '404':606 $ref: '#/components/responses/NotFound'607 delete:608 description: Deletes given device and returns remaining devices of the user609 tags:610 - devices611 summary: Deletes device612 operationId: devicesDeviceDelete613 security:614 - basicAuth: []615 - apiKeyAuth: []616 parameters:617 - name: id618 in: path619 description: Item id620 required: true621 schema:622 $ref: '#/components/schemas/itemId'623 example: 1624 responses:625 '200':626 description: OK627 content:628 application/json:629 schema:630 $ref: '#/components/schemas/devices'631 example:632 Devices:633 $ref: '#/components/examples/devices'634 598 '400': 635 599 $ref: '#/components/responses/BadRequest' … … 786 750 $ref: '#/components/schemas/Gauges' 787 751 logs: 788 $ref: '#/components/schemas/ LogMetaData'752 $ref: '#/components/schemas/logs' 789 753 required: 790 754 - waterId … … 820 784 $ref: '#/components/schemas/point' 821 785 logs: 822 $ref: '#/components/schemas/ LogMetaData'786 $ref: '#/components/schemas/logs' 823 787 comment: 824 788 $ref: '#/components/schemas/comment' … … 883 847 sensorDepth: 884 848 $ref: '#/components/schemas/sensorDepth' 849 logs: 850 $ref: '#/components/schemas/logs' 885 851 comment: 886 852 $ref: '#/components/schemas/comment' … … 924 890 type: number 925 891 format: float 892 required: 893 - datetime 894 - location 926 895 LogMetaData: 927 896 title: 'Metadata of a log, without log entries' … … 931 900 $ref: '#/components/schemas/itemId' 932 901 submitter: 933 $ref: '#/components/schemas/ User'902 $ref: '#/components/schemas/username' 934 903 water: 935 904 $ref: '#/components/schemas/itemId' … … 941 910 $ref: '#/components/schemas/GaugeLevel' 942 911 start: 943 title: Date and Time of the first log entry 912 title: Date and Time of the first log entry in UTC timezone 944 913 type: string 945 914 format: date-time 946 915 end: 947 title: Date and Time of the last log entry 916 title: Date and Time of the last log entry in UTC timezone 948 917 type: string 949 918 format: date-time … … 978 947 properties: 979 948 water: 980 $ref: '#/components/schemas/ Water'949 $ref: '#/components/schemas/itemId' 981 950 device: 982 $ref: '#/components/schemas/ Device'951 $ref: '#/components/schemas/itemId' 983 952 gauge: 984 $ref: '#/components/schemas/ Gauge'953 $ref: '#/components/schemas/itemId' 985 954 gaugeLevel: 986 955 $ref: '#/components/schemas/GaugeLevel' … … 996 965 type: array 997 966 items: 998 $ref: '#/components/schemas/Log '967 $ref: '#/components/schemas/LogMetaData' 999 968 LogGeoJson: 1000 969 title: Log in GeoJson format … … 1312 1281 - name: devices 1313 1282 description: All actions used to manage devices of an user 1283 - name: logs 1284 description: All actions used to manage logs of an water, device, gauge or user
Note:
See TracChangeset
for help on using the changeset viewer.
