Index: src/mapservice/src-gen/openapi_server/openapi/openapi.yaml
===================================================================
--- src/mapservice/src-gen/openapi_server/openapi/openapi.yaml	(revision 5e4cb7308a6b389143e06dfa849e638ac3c2e3cb)
+++ src/mapservice/src-gen/openapi_server/openapi/openapi.yaml	(revision be25db184d7819f890921a7d9eb68683fba03b1f)
@@ -25,5 +25,203 @@
 - description: A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North Sea)
   name: waters
+- description: All actions used to manage users and api keys
+  name: users
 paths:
+  /user:
+    get:
+      description: Returns information for a user
+      operationId: users_get
+      responses:
+        200:
+          content:
+            application/json:
+              examples:
+                User:
+                  $ref: '#/components/examples/User'
+              schema:
+                $ref: '#/components/schemas/User'
+          description: OK
+        400:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Bad Request (400)
+        401:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Unauthorized (401) acces to resource
+      security:
+      - basicAuth: []
+      - apiKeyAuth: []
+      summary: Returns info of a user
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
+    options:
+      description: Used by CORS preflight
+      operationId: user_options
+      responses:
+        200:
+          content:
+            application/json: {}
+          description: CORS prefilght requests should return 200 as status code
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
+    post:
+      description: Registers a new user
+      operationId: users_register
+      requestBody:
+        content:
+          application/json:
+            examples:
+              Water:
+                $ref: '#/components/examples/UserCreation'
+            schema:
+              $ref: '#/components/schemas/UserCreation'
+      responses:
+        201:
+          content:
+            application/json:
+              examples:
+                Water:
+                  $ref: '#/components/examples/User'
+              schema:
+                $ref: '#/components/schemas/User'
+          description: Userr created
+        400:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Bad Request (400)
+      summary: Registers a new user
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
+  /user/apikey_create:
+    get:
+      description: Generates and returns a new API key for current user
+      operationId: users_api_key_create
+      responses:
+        200:
+          content:
+            application/json:
+              example: NewApiKey4711
+              schema:
+                $ref: '#/components/schemas/apiKeys'
+          description: OK
+        400:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Bad Request (400)
+        401:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Unauthorized (401) acces to resource
+      security:
+      - basicAuth: []
+      - apiKeyAuth: []
+      summary: Returns a new API key
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
+  /user/{api_key}:
+    delete:
+      description: Deletes given API key and returns remaining API keys of the user
+      operationId: users_api_key_delete
+      parameters:
+      - description: API key
+        example: DelApiKey4711
+        explode: false
+        in: path
+        name: api_key
+        required: true
+        schema:
+          $ref: '#/components/schemas/apiKey'
+        style: simple
+      responses:
+        200:
+          content:
+            application/json:
+              example: ApiKey4711
+              schema:
+                $ref: '#/components/schemas/apiKeys'
+          description: OK
+        400:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Bad Request (400)
+        401:
+          content:
+            application/json:
+              examples:
+                HttpError:
+                  $ref: '#/components/examples/HttpError'
+              schema:
+                $ref: '#/components/schemas/HttpError'
+          description: Unauthorized (401) acces to resource
+      security:
+      - basicAuth: []
+      - apiKeyAuth: []
+      summary: Deletes API key
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
+  /user/activate/{activation_code}:
+    get:
+      description: Activates a user account
+      operationId: users_activate
+      parameters:
+      - description: Activation code
+        example: dac9630aec642a428cd73f4be0a03569
+        explode: false
+        in: path
+        name: activation_code
+        required: true
+        schema:
+          $ref: '#/components/schemas/activationCode'
+        style: simple
+      responses:
+        302:
+          description: OK or not OK
+          headers:
+            Location:
+              description: URL to the website, showing the result of the activation
+              explode: false
+              schema:
+                type: string
+              style: simple
+      summary: Activates a user account
+      tags:
+      - users
+      x-openapi-router-controller: openapi_server.controllers.users_controller
   /waters:
     get:
@@ -31,18 +229,20 @@
       operationId: waters_get
       parameters:
-      - explode: false
-        in: header
+      - example: Missi
+        explode: true
+        in: query
         name: name
         required: false
         schema:
           $ref: '#/components/schemas/item_name'
-        style: simple
-      - explode: false
-        in: header
+        style: form
+      - example: jane
+        explode: true
+        in: query
         name: manager
         required: false
         schema:
           $ref: '#/components/schemas/username'
-        style: simple
+        style: form
       - description: 'Order by field: name'
         explode: true
@@ -52,4 +252,5 @@
         schema:
           default: name
+          example: name
           type: string
         style: form
@@ -92,5 +293,5 @@
     post:
       description: Adds a new water to the database
-      operationId: waters_post
+      operationId: waters_create
       requestBody:
         content:
@@ -101,5 +302,4 @@
             schema:
               $ref: '#/components/schemas/WaterCreation'
-        description: item id of water is going to be ignored
       responses:
         201:
@@ -175,11 +375,27 @@
 components:
   examples:
+    User:
+      value:
+        username: jane
+        email: jane@example.org
+        firstName: Jane
+        lastName: Doe
+        activated: true
+        apiKeys:
+        - ApiKey4701
+    UserCreation:
+      value:
+        username: richard
+        email: richard@examle.org
+        firstName: Richard
+        lastName: Roe
+        password: sdfl.1238_ASDkeil?
     Water:
       summary: A water example object
       value:
-        water_id: 1
+        waterId: 1
         name: Mississippi
-        osm_id: 1756854
-        osm_type: R
+        osmId: 1756854
+        osmType: R
         link: http://gnuboat.engsas.com/mapservice/v1/waters/1
     WaterCreation:
@@ -187,15 +403,15 @@
       value:
         name: Mississippi
-        osm_id: 1756854
-        osm_type: R
+        osmId: 1756854
+        osmType: R
     waters:
       summary: A sample list with waters
       value:
-      - water_id: 1
+      - waterId: 1
         name: Mississippi
-        osm_id: 1756854
-        osm_type: R
+        osmId: 1756854
+        osmType: R
         link: http://gnuboat.engsas.com/mapservice/v1/waters/1
-      - water_id: 2
+      - waterId: 2
         name: Bodensee
         link: http://gnuboat.engsas.com/mapservice/v1/waters/2
@@ -213,4 +429,5 @@
       schema:
         default: name
+        example: name
         type: string
       style: form
@@ -280,4 +497,15 @@
       title: Username
       type: string
+    apiKey:
+      title: API Key
+      type: string
+    apiKeys:
+      items:
+        $ref: '#/components/schemas/apiKey'
+      title: Array of API keys
+      type: array
+    activationCode:
+      title: Activation code for a User
+      type: string
     item_id:
       format: int32
@@ -287,18 +515,74 @@
       title: Item Name
       type: string
-    osm_type:
+    osmType:
       maxLength: 1
       minLength: 1
       type: string
+    User:
+      example:
+        firstName: firstName
+        lastName: lastName
+        apiKeys:
+        - null
+        - null
+        email: email
+        username: username
+        activated: true
+      properties:
+        username:
+          title: Username
+          type: string
+        email:
+          type: string
+        firstName:
+          type: string
+        lastName:
+          type: string
+        activated:
+          type: boolean
+        apiKeys:
+          items:
+            $ref: '#/components/schemas/apiKey'
+          title: Array of API keys
+          type: array
+      title: User
+      type: object
+    UserCreation:
+      example:
+        firstName: firstName
+        lastName: lastName
+        password: password
+        email: email
+        username: username
+      properties:
+        username:
+          title: Username
+          type: string
+        email:
+          type: string
+        firstName:
+          type: string
+        lastName:
+          type: string
+        password:
+          type: string
+      required:
+      - email
+      - firstName
+      - lastName
+      - password
+      - username
+      title: User
+      type: object
     Water:
       example:
-        osm_id: 6
-        osm_type: osm_type
         manager: manager
+        osmId: 6
         name: name
-        water_id: 0
+        osmType: osmType
         osm_class: osm_class
+        waterId: 0
       properties:
-        water_id:
+        waterId:
           format: int32
           title: Item ID
@@ -310,9 +594,9 @@
           title: Username
           type: string
-        osm_id:
+        osmId:
           format: int32
           title: Item ID
           type: integer
-        osm_type:
+        osmType:
           maxLength: 1
           minLength: 1
@@ -324,21 +608,21 @@
       required:
       - name
-      - water_id
+      - waterId
       title: Water
       type: object
     WaterCreation:
       example:
-        osm_id: 0
-        osm_type: osm_type
+        osmId: 0
         name: name
+        osmType: osmType
       properties:
         name:
           title: Item Name
           type: string
-        osm_id:
+        osmId:
           format: int32
           title: Item ID
           type: integer
-        osm_type:
+        osmType:
           maxLength: 1
           minLength: 1
