Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision f601952f847dd344dbd6d081e0e7812762c56f49)
+++ src/mapservice/openapi.yaml	(revision 5e16955853266e68c24fd278d8f0c96f74f4120c)
@@ -317,4 +317,5 @@
                 - 90.136111
                 - 29.934722
+              referenceWaterLevelGaugeHeight: 5.1
       responses:
         '201':
@@ -530,5 +531,7 @@
           $ref: '#/components/responses/NotFound'
     post:
-      description: Creates a new log from given meta data. The log entries itself, must be uploaded per /logs/{log_id}
+      description: >-
+        Creates a new log from given meta data. The log entries itself, must be
+        uploaded per /logs/{log_id}
       tags:
         - logs
@@ -659,4 +662,70 @@
         '404':
           $ref: '#/components/responses/NotFound'
+  '/tiles/gnuboat/{accuracy}/{resolution}/{zoom}/{x_tile}/{y_tile}.png':
+    get:
+      description: 'Returns the map tile x_tile, y_tile at Zoomlevel zoom'
+      tags:
+        - tiles
+      summary: Represents a tile
+      operationId: tilesTileGet
+      parameters:
+        - name: accuracy
+          in: path
+          description: Accuracy of generated tiles
+          required: true
+          schema:
+            title: >-
+              Accuracy of the tiles (for a higher accuracy more measured points per square meter are needed to generate a pixel of water depth)
+            type: string
+            enum:
+              - 'high'
+              - 'low'
+        - name: resolution
+          in: path
+          description: Resolution of the tiles
+          required: true
+          schema:
+            title: >-
+              Tile Resolution (Pixel per Tile) (Placed here, because
+              codegenerator could use Enums in components/schemas
+            type: integer
+            format: int32
+            enum:
+              - 256
+              - 512
+        - name: zoom
+          in: path
+          description: Zoomlevel
+          required: true
+          schema:
+            $ref: '#/components/schemas/tileZoomlevel'
+        - name: x_tile
+          in: path
+          description: Number of the tile in x dimension
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+        - name: y_tile
+          in: path
+          description: Number of the tile in y dimension
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+      responses:
+        '200':
+          description: OK
+          content:
+            image/*:
+              schema:
+                type: string
+                format: binary
+                #contentEncoding: base64
+                #contentMediaType: image/png
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '404':
+          $ref: '#/components/responses/NotFound'
+        '500':
+          $ref: '#/components/responses/InternalServerError'
 components:
   securitySchemes:
@@ -688,5 +757,5 @@
       title: Item ID
       type: integer
-      format: int32
+      format: int64
     itemName:
       title: Item Name
@@ -851,4 +920,9 @@
       items:
         $ref: '#/components/schemas/Water'
+    ReferenceWaterLevelGaugeHeight:
+      title: Gauge Height of reference water level of a Gauge
+      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.
+      type: number
+      format: float
     Gauge:
       title: Gauge
@@ -863,4 +937,6 @@
         location:
           $ref: '#/components/schemas/point'
+        referenceWaterLevelGaugeHeight:
+          $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
         logs:
           $ref: '#/components/schemas/logs'
@@ -871,4 +947,5 @@
         - name
         - location
+        - referenceWaterLevelGaugeHeight
     GaugeCreation:
       title: Gauge for Creation
@@ -879,4 +956,6 @@
         location:
           $ref: '#/components/schemas/point'
+        referenceWaterLevelGaugeHeight:
+          $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
         water:
           $ref: '#/components/schemas/itemBase'
@@ -906,4 +985,6 @@
             manager:
               $ref: '#/components/schemas/username'
+            referenceWaterLevelGaugeHeight:
+              $ref: '#/components/schemas/ReferenceWaterLevelGaugeHeight'
             comment:
               $ref: '#/components/schemas/comment'
@@ -956,5 +1037,5 @@
         $ref: '#/components/schemas/Device'
     GaugeHeight:
-      title: 'Absolute water height (stage) of the gauge, at the time of measuring'
+      title: 'Gauge height (stage) of the gauge, at the time of measuring'
       type: number
       format: float
@@ -1085,4 +1166,10 @@
         - geometry
         - properties
+    tileZoomlevel:
+      title: Zoomlevel of requested Tile
+      type: integer
+      format: int32
+      minimum: 0
+      maximum: 19
     HttpError:
       title: HTTP Error Response Object
@@ -1188,4 +1275,5 @@
           - 90.136111
           - 29.934722
+        referenceWaterLevelGaugeHeight: 5.1
         comment: Gauge for Mississippi in New Orleans
     Gauges:
@@ -1197,4 +1285,5 @@
             - 90.136111
             - 29.934722
+          referenceWaterLevelGaugeHeight: 5.1
       summary: A sample list of gauges
     GaugeGeoJson:
@@ -1209,4 +1298,5 @@
             name: New Orleans
             manager: jane
+            referenceWaterLevelGaugeHeight: 5.1
             comment: Gauge for Mississippi in New Orleans
     GaugesGeoJson:
@@ -1221,4 +1311,5 @@
               name: New Orleans
               manager: jane
+              referenceWaterLevelGaugeHeight: 5.1
               comment: Gauge for Mississippi in New Orleans
       summary: A sample list of gauges in GeoJson format
@@ -1349,5 +1440,14 @@
               $ref: '#/components/examples/HttpError'
     NotFound:
-      description: Water with given Id not found
+      description: Item with given Id not found
+      content:
+        application/problem+json:
+          schema:
+            $ref: '#/components/schemas/HttpError'
+          examples:
+            HttpError:
+              $ref: '#/components/examples/HttpError'
+    InternalServerError:
+      description: Internal Server Error (HTTP Code 500)
       content:
         application/problem+json:
@@ -1368,2 +1468,4 @@
   - name: logs
     description: 'All actions used to manage logs of an water, device, gauge or user'
+  - name: tiles
+    description: Tile serving
