Changeset 5e16955 for src/mapservice/openapi.yaml
- Timestamp:
- Mar 30, 2020, 8:31:10 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- b72d9c4
- Parents:
- 9f5877d
- File:
-
- 1 edited
-
src/mapservice/openapi.yaml (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mapservice/openapi.yaml
r9f5877d r5e16955 317 317 - 90.136111 318 318 - 29.934722 319 referenceWaterLevelGaugeHeight: 5.1 319 320 responses: 320 321 '201': … … 530 531 $ref: '#/components/responses/NotFound' 531 532 post: 532 description: Creates a new log from given meta data. The log entries itself, must be uploaded per /logs/{log_id} 533 description: >- 534 Creates a new log from given meta data. The log entries itself, must be 535 uploaded per /logs/{log_id} 533 536 tags: 534 537 - logs … … 659 662 '404': 660 663 $ref: '#/components/responses/NotFound' 664 '/tiles/gnuboat/{accuracy}/{resolution}/{zoom}/{x_tile}/{y_tile}.png': 665 get: 666 description: 'Returns the map tile x_tile, y_tile at Zoomlevel zoom' 667 tags: 668 - tiles 669 summary: Represents a tile 670 operationId: tilesTileGet 671 parameters: 672 - name: accuracy 673 in: path 674 description: Accuracy of generated tiles 675 required: true 676 schema: 677 title: >- 678 Accuracy of the tiles (for a higher accuracy more measured points per square meter are needed to generate a pixel of water depth) 679 type: string 680 enum: 681 - 'high' 682 - 'low' 683 - name: resolution 684 in: path 685 description: Resolution of the tiles 686 required: true 687 schema: 688 title: >- 689 Tile Resolution (Pixel per Tile) (Placed here, because 690 codegenerator could use Enums in components/schemas 691 type: integer 692 format: int32 693 enum: 694 - 256 695 - 512 696 - name: zoom 697 in: path 698 description: Zoomlevel 699 required: true 700 schema: 701 $ref: '#/components/schemas/tileZoomlevel' 702 - name: x_tile 703 in: path 704 description: Number of the tile in x dimension 705 required: true 706 schema: 707 $ref: '#/components/schemas/itemId' 708 - name: y_tile 709 in: path 710 description: Number of the tile in y dimension 711 required: true 712 schema: 713 $ref: '#/components/schemas/itemId' 714 responses: 715 '200': 716 description: OK 717 content: 718 image/*: 719 schema: 720 type: string 721 format: binary 722 #contentEncoding: base64 723 #contentMediaType: image/png 724 '400': 725 $ref: '#/components/responses/BadRequest' 726 '404': 727 $ref: '#/components/responses/NotFound' 728 '500': 729 $ref: '#/components/responses/InternalServerError' 661 730 components: 662 731 securitySchemes: … … 688 757 title: Item ID 689 758 type: integer 690 format: int 32759 format: int64 691 760 itemName: 692 761 title: Item Name … … 851 920 items: 852 921 $ref: '#/components/schemas/Water' 922 ReferenceWaterLevelGaugeHeight: 923 title: Gauge Height of reference water level of a Gauge 924 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. 925 type: number 926 format: float 853 927 Gauge: 854 928 title: Gauge … … 863 937 location: 864 938 $ref: '#/components/schemas/point' 939 referenceWaterLevelGaugeHeight: 940 $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight' 865 941 logs: 866 942 $ref: '#/components/schemas/logs' … … 871 947 - name 872 948 - location 949 - referenceWaterLevelGaugeHeight 873 950 GaugeCreation: 874 951 title: Gauge for Creation … … 879 956 location: 880 957 $ref: '#/components/schemas/point' 958 referenceWaterLevelGaugeHeight: 959 $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight' 881 960 water: 882 961 $ref: '#/components/schemas/itemBase' … … 906 985 manager: 907 986 $ref: '#/components/schemas/username' 987 referenceWaterLevelGaugeHeight: 988 $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight' 908 989 comment: 909 990 $ref: '#/components/schemas/comment' … … 956 1037 $ref: '#/components/schemas/Device' 957 1038 GaugeHeight: 958 title: ' Absolute waterheight (stage) of the gauge, at the time of measuring'1039 title: 'Gauge height (stage) of the gauge, at the time of measuring' 959 1040 type: number 960 1041 format: float … … 1085 1166 - geometry 1086 1167 - properties 1168 tileZoomlevel: 1169 title: Zoomlevel of requested Tile 1170 type: integer 1171 format: int32 1172 minimum: 0 1173 maximum: 19 1087 1174 HttpError: 1088 1175 title: HTTP Error Response Object … … 1188 1275 - 90.136111 1189 1276 - 29.934722 1277 referenceWaterLevelGaugeHeight: 5.1 1190 1278 comment: Gauge for Mississippi in New Orleans 1191 1279 Gauges: … … 1197 1285 - 90.136111 1198 1286 - 29.934722 1287 referenceWaterLevelGaugeHeight: 5.1 1199 1288 summary: A sample list of gauges 1200 1289 GaugeGeoJson: … … 1209 1298 name: New Orleans 1210 1299 manager: jane 1300 referenceWaterLevelGaugeHeight: 5.1 1211 1301 comment: Gauge for Mississippi in New Orleans 1212 1302 GaugesGeoJson: … … 1221 1311 name: New Orleans 1222 1312 manager: jane 1313 referenceWaterLevelGaugeHeight: 5.1 1223 1314 comment: Gauge for Mississippi in New Orleans 1224 1315 summary: A sample list of gauges in GeoJson format … … 1349 1440 $ref: '#/components/examples/HttpError' 1350 1441 NotFound: 1351 description: Water with given Id not found 1442 description: Item with given Id not found 1443 content: 1444 application/problem+json: 1445 schema: 1446 $ref: '#/components/schemas/HttpError' 1447 examples: 1448 HttpError: 1449 $ref: '#/components/examples/HttpError' 1450 InternalServerError: 1451 description: Internal Server Error (HTTP Code 500) 1352 1452 content: 1353 1453 application/problem+json: … … 1368 1468 - name: logs 1369 1469 description: 'All actions used to manage logs of an water, device, gauge or user' 1470 - name: tiles 1471 description: Tile serving
Note:
See TracChangeset
for help on using the changeset viewer.
