Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision 5e4cb7308a6b389143e06dfa849e638ac3c2e3cb)
+++ src/mapservice/openapi.yaml	(revision be25db184d7819f890921a7d9eb68683fba03b1f)
@@ -23,4 +23,138 @@
         default: v1
 paths:
+  '/user':
+    get:
+      description: Returns information for a user
+      tags:
+        - users
+      summary: Returns info of a user
+      operationId: usersGet
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/User'
+              examples:
+                User:
+                  $ref: '#/components/examples/User'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+    post:
+      description: Registers a new user
+      tags:
+        - users
+      summary: Registers a new user
+      operationId: usersRegister
+      requestBody:
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/UserCreation'
+            examples:
+              Water:
+                $ref: '#/components/examples/UserCreation'
+      responses:
+        '201':
+          description: Userr created
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/User'
+              examples:
+                Water:
+                  $ref: '#/components/examples/User'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+    options:
+      description: Used by CORS preflight
+      tags:
+        - users
+      responses:
+        '200':
+          description: CORS prefilght requests should return 200 as status code
+          content:
+           application/json: {}
+  '/user/apikey_create':
+    get:
+      description: Generates and returns a new API key for current user
+      tags:
+        - users
+      summary: Returns a new API key
+      operationId: usersApiKeyCreate
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/apiKeys'
+              example: 'NewApiKey4711'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+  '/user/{api_key}':
+    delete:
+      description: Deletes given API key and returns remaining API keys of the user
+      tags:
+        - users
+      summary: Deletes API key
+      operationId: usersApiKeyDelete
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      parameters:
+        - name: api_key
+          in: path
+          description: API key
+          required: true
+          schema:
+            $ref: '#/components/schemas/apiKey'
+          example: 'DelApiKey4711'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/apiKeys'
+              example: 'ApiKey4711'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+  '/user/activate/{activation_code}':
+    get:
+      description: Activates a user account
+      tags:
+        - users
+      summary: Activates a user account
+      operationId: usersActivate
+      parameters:
+        - name: activation_code
+          in: path
+          description: Activation code
+          required: true
+          schema:
+            $ref: '#/components/schemas/activationCode'
+          example: 'dac9630aec642a428cd73f4be0a03569'
+      responses:
+        '302':
+          description: OK or not OK
+          headers:
+            Location:
+              schema:
+                type: string
+              description: URL to the website, showing the result of the activation
   /waters:
     get:
@@ -32,11 +166,13 @@
       parameters:
         - name: name
-          in: header
+          in: query
           schema:
             $ref: '#/components/schemas/item_name'
+          example: 'Missi'
         - name: manager
-          in: header
+          in: query
           schema:
             $ref: '#/components/schemas/username'
+          example: 'jane'
         - $ref: '#/components/parameters/orderBy'
         - $ref: '#/components/parameters/offset'
@@ -57,9 +193,9 @@
         - waters
       summary: Add a new water
+      operationId: watersCreate
       security:
         - basicAuth: []
         - apiKeyAuth: []
       requestBody:
-        description: item id of water is going to be ignored
         content:
           application/json:
@@ -124,4 +260,15 @@
       title: Username
       type: string
+    apiKey:
+      title: API Key
+      type: string
+    apiKeys:
+      title: Array of API keys
+      type: array
+      items:
+        $ref: '#/components/schemas/apiKey'
+    activationCode:
+      title: Activation code for a User
+      type: string
     item_id:
       title: Item ID
@@ -131,13 +278,49 @@
       title: Item Name
       type: string
-    osm_type:
+    osmType:
       maxLength: 1
       minLength: 1
       type: string
+    User:
+      title: User
+      type: object
+      properties:
+        username:
+          $ref: '#/components/schemas/username'
+        email:
+          type: string
+        firstName:
+          type: string
+        lastName:
+          type: string
+        activated:
+          type: boolean
+        apiKeys:
+          $ref: '#/components/schemas/apiKeys'
+    UserCreation:
+      title: User
+      type: object
+      properties:
+        username:
+          $ref: '#/components/schemas/username'
+        email:
+          type: string
+        firstName:
+          type: string
+        lastName:
+          type: string
+        password:
+          type: string
+      required:
+        - username
+        - email
+        - firstName
+        - lastName
+        - password
     Water:
       title: Water
       type: object
       properties:
-        water_id:
+        waterId:
           $ref: '#/components/schemas/item_id'
         name:
@@ -145,12 +328,12 @@
         manager:
           $ref: '#/components/schemas/username'
-        osm_id:
+        osmId:
           $ref: '#/components/schemas/item_id'
-        osm_type:
-          $ref: '#/components/schemas/osm_type'
+        osmType:
+          $ref: '#/components/schemas/osmType'
         osm_class:
-          $ref: '#/components/schemas/osm_type'
+          $ref: '#/components/schemas/osmType'
       required:
-        - water_id
+        - waterId
         - name
     WaterCreation:
@@ -160,8 +343,8 @@
         name:
           $ref: '#/components/schemas/item_name'
-        osm_id:
+        osmId:
           $ref: '#/components/schemas/item_id'
-        osm_type:
-          $ref: '#/components/schemas/osm_type'
+        osmType:
+          $ref: '#/components/schemas/osmType'
       required:
         - name
@@ -202,4 +385,5 @@
         type: string
         default: name
+        example: 'name'
     order:
       name: order
@@ -208,4 +392,5 @@
       schema:
         $ref: '#/components/schemas/order'
+      example: ''
     offset:
       name: offset
@@ -231,10 +416,26 @@
         example: 10
   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:
       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'
       summary: A water example object
@@ -242,15 +443,15 @@
       value:
         name: Mississippi
-        osm_id: 1756854
-        osm_type: R
+        osmId: 1756854
+        osmType: R
       summary: A water example object for creation of a water
     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'
@@ -293,2 +494,5 @@
       A water is a river (like Mississippi, lake (Lake Ontario), or a sea (North
       Sea)
+  - name: users
+    description: >-
+      All actions used to manage users and api keys
