Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision 28198a1e37a102d2c3b294f60e3e547fb8a2b16d)
+++ src/mapservice/openapi.yaml	(revision aaaaa2ea2229eb202345a0c4b5cfb3d03cd409b2)
@@ -81,5 +81,5 @@
           description: CORS prefilght requests should return 200 as status code
           content:
-           application/json: {}
+            application/json: {}
   '/user/apikey_create':
     get:
@@ -98,5 +98,5 @@
               schema:
                 $ref: '#/components/schemas/apiKeys'
-              example: 'NewApiKey4711'
+              example: NewApiKey4711
         '400':
           $ref: '#/components/responses/BadRequest'
@@ -119,5 +119,5 @@
           schema:
             $ref: '#/components/schemas/apiKey'
-          example: 'DelApiKey4711'
+          example: DelApiKey4711
       responses:
         '200':
@@ -127,9 +127,11 @@
               schema:
                 $ref: '#/components/schemas/apiKeys'
-              example: 'ApiKey4711'
+              example: ApiKey4711
         '400':
           $ref: '#/components/responses/BadRequest'
         '401':
           $ref: '#/components/responses/Unauthorized'
+        '404':
+          $ref: '#/components/responses/NotFound'
   '/user/activate/{activation_code}':
     get:
@@ -146,5 +148,5 @@
           schema:
             $ref: '#/components/schemas/activationCode'
-          example: 'dac9630aec642a428cd73f4be0a03569'
+          example: dac9630aec642a428cd73f4be0a03569
       responses:
         '302':
@@ -154,6 +156,6 @@
               schema:
                 type: string
-              description: URL to the website, showing the result of the activation
-  /waters:
+              description: 'URL to the website, showing the result of the activation'
+  '/waters':
     get:
       description: Returns all waters
@@ -167,10 +169,10 @@
           schema:
             $ref: '#/components/schemas/itemName'
-          example: 'Missi'
+          example: Missi
         - name: manager
           in: query
           schema:
             $ref: '#/components/schemas/username'
-          example: 'jane'
+          example: jane
         - $ref: '#/components/parameters/orderBy'
         - $ref: '#/components/parameters/offset'
@@ -186,4 +188,6 @@
                 Waters:
                   $ref: '#/components/examples/waters'
+        '404':
+          $ref: '#/components/responses/NotFound'
     post:
       description: Adds a new water to the database
@@ -200,8 +204,8 @@
             schema:
               $ref: '#/components/schemas/WaterCreation'
-            example: 
+            example:
               name: Rhein
               osmId: 1756854
-              osmType: 'Relation'
+              osmType: Relation
       responses:
         '201':
@@ -224,5 +228,5 @@
         - waters
       summary: Represents a water
-      operationId: waterGetById
+      operationId: watersGetById
       parameters:
         - name: id
@@ -242,4 +246,133 @@
                 Water:
                   $ref: '#/components/examples/Water'
+        '404':
+          $ref: '#/components/responses/NotFound'
+  '/waters/{water_id}/gauges':
+    get:
+      description: Returns all gauges of water waterId
+      tags:
+        - waters
+      summary: Find gauges of water waterId by gaugeId
+      operationId: watersGaugesGet
+      parameters:
+        - name: water_id
+          in: path
+          description: Water ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+        - name: name
+          in: query
+          schema:
+            $ref: '#/components/schemas/itemName'
+          example: Missi
+        - name: manager
+          in: query
+          schema:
+            $ref: '#/components/schemas/username'
+          example: jane
+        - $ref: '#/components/parameters/orderBy'
+        - $ref: '#/components/parameters/offset'
+        - $ref: '#/components/parameters/limit'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Gauges'
+              examples:
+                Gauges:
+                  $ref: '#/components/examples/Gauges'
+            application/geo+json:
+              schema:
+                $ref: '#/components/schemas/GaugesGeoJson'
+              examples:
+                Gauge:
+                  $ref: '#/components/examples/GaugesGeoJson'
+    post:
+      description: Adds a new gauge for water waterId to the database
+      tags:
+        - waters
+      summary: Add a new water
+      operationId: watersGaugeCreate
+      parameters:
+        - name: water_id
+          in: path
+          description: Water ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      requestBody:
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/GaugeCreation'
+            example:
+              name: New Orleans
+              location:
+                - 90.136111
+                - 29.934722
+      responses:
+        '201':
+          description: Gauge created
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Gauge'
+              examples:
+                Gauge:
+                  $ref: '#/components/examples/Gauge'
+            application/geo+json:
+              schema:
+                $ref: '#/components/schemas/GaugeGeoJson'
+              examples:
+                Gauge:
+                  $ref: '#/components/examples/GaugeGeoJson'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+  '/waters/{water_id}/gauges/{gauge_id}':
+    get:
+      description: Returns the gauge identified by id
+      tags:
+        - waters
+      summary: Represents a gauge
+      operationId: watersGaugeGetById
+      parameters:
+        - name: water_id
+          in: path
+          description: Water ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+        - name: gauge_id
+          in: path
+          description: Gauge ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Gauge'
+              examples:
+                Gauge:
+                  $ref: '#/components/examples/Gauge'
+            application/geo+json:
+              schema:
+                $ref: '#/components/schemas/GaugeGeoJson'
+              examples:
+                Gauge:
+                  $ref: '#/components/examples/GaugeGeoJson'
+        '400':
+          $ref: '#/components/responses/BadRequest'
         '404':
           $ref: '#/components/responses/NotFound'
@@ -277,4 +410,16 @@
       title: Item Name
       type: string
+    order:
+      title: order
+      enum:
+        - desc
+        - asc
+      type: string
+      default: asc
+      description: |
+        Sort order:
+          * `asc` - Ascending, from A to Z
+          * `desc` - Descending, from Z to A
+      example: asc
     osmType:
       title: OSM type of item (N|W|R)
@@ -284,4 +429,30 @@
         - Way
         - Relation
+    comment:
+      title: Comment of an item
+      type: string
+    point:
+      title: 'Point of type [longitude, latitude]'
+      type: array
+      maxItems: 2
+      minItems: 2
+      items:
+        type: number
+    geoJsonType:
+      title: Type of GeoJSON objects
+      type: string
+      enum:
+        - Feature
+        - Point
+    geoJsonPoint:
+      type: object
+      description: GeoJSon geometry
+      externalDocs:
+        url: 'http://geojson.org/geojson-spec.html#id2'
+      properties:
+        type:
+          type: string
+        coordinates:
+          $ref: '#/components/schemas/point'
     User:
       title: User
@@ -334,4 +505,6 @@
         osmType:
           $ref: '#/components/schemas/osmType'
+        gauges:
+          $ref: '#/components/schemas/Gauges'
       required:
         - waterId
@@ -354,16 +527,68 @@
       items:
         $ref: '#/components/schemas/Water'
-    order:
-      title: order
-      enum:
-        - desc
-        - asc
-      type: string
-      default: asc
-      description: |
-        Sort order:
-          * `asc` - Ascending, from A to Z
-          * `desc` - Descending, from Z to A
-      example: asc
+    Gauge:
+      title: Gauge
+      type: object
+      properties:
+        gaugeId:
+          $ref: '#/components/schemas/itemId'
+        name:
+          $ref: '#/components/schemas/itemName'
+        manager:
+          $ref: '#/components/schemas/username'
+        location:
+          $ref: '#/components/schemas/point'
+        comment:
+          $ref: '#/components/schemas/comment'
+      required:
+        - gaugeId
+        - name
+        - location
+    GaugeCreation:
+      title: Gauge for Creation
+      type: object
+      properties:
+        name:
+          $ref: '#/components/schemas/itemName'
+        location:
+          $ref: '#/components/schemas/point'
+        comment:
+          $ref: '#/components/schemas/comment'
+      required:
+        - name
+        - location
+    Gauges:
+      title: Gauges
+      type: array
+      items:
+        $ref: '#/components/schemas/Gauge'
+    GaugeGeoJson:
+      title: Gauge
+      type: object
+      properties:
+        type:
+          $ref: '#/components/schemas/geoJsonType'
+        geometry:
+          $ref: '#/components/schemas/geoJsonPoint'
+        properties:
+          type: object
+          properties:
+            name:
+              $ref: '#/components/schemas/itemName'
+            manager:
+              $ref: '#/components/schemas/username'
+            comment:
+              $ref: '#/components/schemas/comment'
+          required:
+            - name
+      required:
+        - type
+        - geometry
+        - properties
+    GaugesGeoJson:
+      title: Gauges in GeoJson format
+      type: array
+      items:
+        $ref: '#/components/schemas/GaugeGeoJson'
     HttpError:
       title: HTTP Error Response Object
@@ -385,5 +610,5 @@
         type: string
         default: name
-        example: 'name'
+        example: name
     order:
       name: order
@@ -443,15 +668,58 @@
         name: Mississippi
         osmId: 1756854
-        osmType: 'Relation'
+        osmType: Relation
       summary: A water example object for creation of a water
     waters:
       value:
         - waterId: 1
-          name: 'Mississippi'
+          name: Mississippi
           osmId: 1756854
-          osmType: 'Relation'
+          osmType: Relation
         - waterId: 2
-          name: 'Bodensee'
+          name: Bodensee
       summary: A sample list with waters
+    Gauge:
+      value:
+        gaugeId: 1
+        name: New Orleans
+        manager: jane
+        location:
+          - 90.136111
+          - 29.934722
+        comment: Gauge for Mississippi in New Orleans
+    Gauges:
+      value:
+        - gaugeId: 1
+          name: New Orleans
+          manager: jane
+          location:
+            - 90.136111
+            - 29.934722
+      summary: A sample list of gauges
+    GaugeGeoJson:
+      value:
+        type: Feature
+        geometry:
+          type: Point
+          coordinates:
+            - 90.136111
+            - 29.934722 
+          properties:
+            name: New Orleans
+            manager: jane
+            comment: Gauge for Mississippi in New Orleans
+    GaugesGeoJson:
+      value:
+        - type: Feature
+          geometry:
+            type: Point
+            coordinates:
+              - 90.136111
+              - 29.934722 
+            properties:
+              name: New Orleans
+              manager: jane
+              comment: Gauge for Mississippi in New Orleans
+      summary: A sample list of gauges in GeoJson format
     HttpError:
       value:
@@ -492,4 +760,3 @@
       Sea)
   - name: users
-    description: >-
-      All actions used to manage users and api keys
+    description: All actions used to manage users and api keys
