Changeset 1cd45dd for src/mapservice/openapi.yaml
- Timestamp:
- Oct 20, 2019, 6:22:29 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 6b713e6
- Parents:
- ec8d5d0
- File:
-
- 1 edited
-
src/mapservice/openapi.yaml (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/openapi.yaml
rec8d5d0 r1cd45dd 377 377 '404': 378 378 $ref: '#/components/responses/NotFound' 379 '/devices':379 /devices: 380 380 get: 381 381 description: Returns all devices of user … … 417 417 - basicAuth: [] 418 418 - apiKeyAuth: [] 419 parameters:420 - name: user_id421 in: path422 description: User ID423 required: true424 schema:425 $ref: '#/components/schemas/itemId'426 419 requestBody: 427 420 content: … … 430 423 $ref: '#/components/schemas/DeviceCreation' 431 424 example: 432 name: "Lovely Boat"425 name: Lovely Boat 433 426 sensorDepth: 2 434 427 responses: … … 473 466 Water: 474 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' 475 501 '404': 476 502 $ref: '#/components/responses/NotFound' … … 555 581 sensorDepth: 556 582 type: number 557 title: 'Depth of sensor beneath water level in cm (positive means below water)'583 title: Depth of sensor beneath water level in cm (positive means below water) 558 584 minimum: 0 559 585 User: … … 704 730 $ref: '#/components/schemas/sensorDepth' 705 731 comment: 706 $ref: '#/components/schemas/comment'732 $ref: '#/components/schemas/comment' 707 733 required: 708 734 - deviceId … … 718 744 $ref: '#/components/schemas/sensorDepth' 719 745 comment: 720 $ref: '#/components/schemas/comment'746 $ref: '#/components/schemas/comment' 721 747 required: 722 748 - name … … 731 757 type: object 732 758 properties: 733 code: 734 type: integer 735 message: 736 type: string 759 type: 760 type: string 761 title: 762 type: string 763 detail: 764 type: string 765 instance: 766 type: string 737 767 required: 738 - code 739 - message 768 - type 769 - title 770 - detail 771 - instance 740 772 parameters: 741 773 orderBy: … … 873 905 HttpError: 874 906 value: 875 code: 404 876 message: Water with id 999999 not found 907 type: "http://example.com/waters/not-found" 908 title: "Water 1 not found" 909 detail: "There is no water with id 1 in database" 910 instance: "http://example.net/waters/1" 877 911 responses: 878 912 BadRequest: 879 913 description: Bad Request (400) 880 914 content: 881 application/ json:915 application/problem+json: 882 916 schema: 883 917 $ref: '#/components/schemas/HttpError' … … 888 922 description: Unauthorized (401) acces to resource 889 923 content: 890 application/ json:924 application/problem+json: 891 925 schema: 892 926 $ref: '#/components/schemas/HttpError' … … 897 931 description: Water with given Id not found 898 932 content: 899 application/ json:933 application/problem+json: 900 934 schema: 901 935 $ref: '#/components/schemas/HttpError'
Note:
See TracChangeset
for help on using the changeset viewer.
