Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision 72cc33989269bc2dab1ffc2e448c54534722aa15)
+++ src/mapservice/openapi.yaml	(revision 9af063801900ffaaadeaa8dcb5a6d31a87e2caf5)
@@ -377,23 +377,135 @@
         '404':
           $ref: '#/components/responses/NotFound'
+  /devices:
+    get:
+      description: Returns all devices of user
+      tags:
+        - devices
+      summary: Find devices by id
+      operationId: devicesGet
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      parameters:
+        - name: name
+          in: query
+          schema:
+            $ref: '#/components/schemas/itemName'
+          example: Love
+        - $ref: '#/components/parameters/orderBy'
+        - $ref: '#/components/parameters/offset'
+        - $ref: '#/components/parameters/limit'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/devices'
+              examples:
+                Devices:
+                  $ref: '#/components/examples/devices'
+        '404':
+          $ref: '#/components/responses/NotFound'
+    post:
+      description: Adds a new device to the database
+      tags:
+        - devices
+      summary: Add a new device
+      operationId: devicesCreate
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      requestBody:
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/DeviceCreation'
+            example:
+              name: Lovely Boat
+              sensorDepth: 2
+      responses:
+        '201':
+          description: Device created
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Device'
+              examples:
+                Device:
+                  $ref: '#/components/examples/Device'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+  '/devices/{id}':
+    get:
+      description: Returns the device identified by id
+      tags:
+        - devices
+      summary: Represents a device
+      operationId: devicesGetById
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      parameters:
+        - name: id
+          in: path
+          description: Item ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/Device'
+              examples:
+                Water:
+                  $ref: '#/components/examples/Device'
+        '404':
+          $ref: '#/components/responses/NotFound'
+    delete:
+      description: Deletes given device and returns remaining devices of the user
+      tags:
+        - devices
+      summary: Deletes device
+      operationId: devicesDeviceDelete
+      security:
+        - basicAuth: []
+        - apiKeyAuth: []
+      parameters:
+        - name: id
+          in: path
+          description: Item id
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+          example: 1
+      responses:
+        '200':
+          description: OK
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/devices'
+              example:
+                Devices:
+                  $ref: '#/components/examples/devices'
+        '400':
+          $ref: '#/components/responses/BadRequest'
+        '401':
+          $ref: '#/components/responses/Unauthorized'
+        '404':
+          $ref: '#/components/responses/NotFound'
+  '/logs':
     post:
       description: Adds a new log to the database
       tags:
-        - waters
+        - logs
       summary: Add a new log
-      operationId: watersCreateLog
-      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'
+      operationId: logsLogCreate
       security:
         - basicAuth: []
@@ -424,24 +536,12 @@
         '401':
           $ref: '#/components/responses/Unauthorized'
-  '/waters/{water_id}/gauges/{gauge_id}/{log_id}':
+  '/logs/{log_id}':
     get:
       description: Returns the log identified by id
       tags:
-        - waters
+        - logs
       summary: Represents a log
-      operationId: watersLogGetById
+      operationId: logsLogGetById
       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'
         - name: log_id
           in: path
@@ -473,23 +573,11 @@
       description: Deletes given log and returns remaining logs of the gauge
       tags:
-        - waters
+        - logs
       summary: Deletes log
-      operationId: watersLogDelete
+      operationId: logsLogDelete
       security:
         - basicAuth: []
         - apiKeyAuth: []
       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'
         - name: log_id
           in: path
@@ -508,128 +596,4 @@
                 Devices:
                   $ref: '#/components/examples/logs'
-        '400':
-          $ref: '#/components/responses/BadRequest'
-        '401':
-          $ref: '#/components/responses/Unauthorized'
-        '404':
-          $ref: '#/components/responses/NotFound'
-  /devices:
-    get:
-      description: Returns all devices of user
-      tags:
-        - devices
-      summary: Find devices by id
-      operationId: devicesGet
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
-      parameters:
-        - name: name
-          in: query
-          schema:
-            $ref: '#/components/schemas/itemName'
-          example: Love
-        - $ref: '#/components/parameters/orderBy'
-        - $ref: '#/components/parameters/offset'
-        - $ref: '#/components/parameters/limit'
-      responses:
-        '200':
-          description: OK
-          content:
-            application/json:
-              schema:
-                $ref: '#/components/schemas/devices'
-              examples:
-                Devices:
-                  $ref: '#/components/examples/devices'
-        '404':
-          $ref: '#/components/responses/NotFound'
-    post:
-      description: Adds a new device to the database
-      tags:
-        - devices
-      summary: Add a new device
-      operationId: devicesCreate
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
-      requestBody:
-        content:
-          application/json:
-            schema:
-              $ref: '#/components/schemas/DeviceCreation'
-            example:
-              name: Lovely Boat
-              sensorDepth: 2
-      responses:
-        '201':
-          description: Device created
-          content:
-            application/json:
-              schema:
-                $ref: '#/components/schemas/Device'
-              examples:
-                Device:
-                  $ref: '#/components/examples/Device'
-        '400':
-          $ref: '#/components/responses/BadRequest'
-        '401':
-          $ref: '#/components/responses/Unauthorized'
-  '/devices/{id}':
-    get:
-      description: Returns the device identified by id
-      tags:
-        - devices
-      summary: Represents a device
-      operationId: devicesGetById
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
-      parameters:
-        - name: id
-          in: path
-          description: Item ID
-          required: true
-          schema:
-            $ref: '#/components/schemas/itemId'
-      responses:
-        '200':
-          description: OK
-          content:
-            application/json:
-              schema:
-                $ref: '#/components/schemas/Device'
-              examples:
-                Water:
-                  $ref: '#/components/examples/Device'
-        '404':
-          $ref: '#/components/responses/NotFound'
-    delete:
-      description: Deletes given device and returns remaining devices of the user
-      tags:
-        - devices
-      summary: Deletes device
-      operationId: devicesDeviceDelete
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
-      parameters:
-        - name: id
-          in: path
-          description: Item id
-          required: true
-          schema:
-            $ref: '#/components/schemas/itemId'
-          example: 1
-      responses:
-        '200':
-          description: OK
-          content:
-            application/json:
-              schema:
-                $ref: '#/components/schemas/devices'
-              example:
-                Devices:
-                  $ref: '#/components/examples/devices'
         '400':
           $ref: '#/components/responses/BadRequest'
@@ -786,5 +750,5 @@
           $ref: '#/components/schemas/Gauges'
         logs:
-          $ref: '#/components/schemas/LogMetaData'
+          $ref: '#/components/schemas/logs'
       required:
         - waterId
@@ -820,5 +784,5 @@
           $ref: '#/components/schemas/point'
         logs:
-          $ref: '#/components/schemas/LogMetaData'
+          $ref: '#/components/schemas/logs'
         comment:
           $ref: '#/components/schemas/comment'
@@ -883,4 +847,6 @@
         sensorDepth:
           $ref: '#/components/schemas/sensorDepth'
+        logs:
+          $ref: '#/components/schemas/logs'
         comment:
           $ref: '#/components/schemas/comment'
@@ -924,4 +890,7 @@
           type: number
           format: float
+      required:
+        - datetime
+        - location
     LogMetaData:
       title: 'Metadata of a log, without log entries'
@@ -931,5 +900,5 @@
           $ref: '#/components/schemas/itemId'
         submitter:
-          $ref: '#/components/schemas/User'
+          $ref: '#/components/schemas/username'
         water:
           $ref: '#/components/schemas/itemId'
@@ -941,9 +910,9 @@
           $ref: '#/components/schemas/GaugeLevel'
         start:
-          title: Date and Time of the first log entry
+          title: Date and Time of the first log entry in UTC timezone
           type: string
           format: date-time
         end:
-          title: Date and Time of the last log entry
+          title: Date and Time of the last log entry in UTC timezone
           type: string
           format: date-time
@@ -978,9 +947,9 @@
       properties:
         water:
-          $ref: '#/components/schemas/Water'
+          $ref: '#/components/schemas/itemId'
         device:
-          $ref: '#/components/schemas/Device'
+          $ref: '#/components/schemas/itemId'
         gauge:
-          $ref: '#/components/schemas/Gauge'
+          $ref: '#/components/schemas/itemId'
         gaugeLevel:
           $ref: '#/components/schemas/GaugeLevel'
@@ -996,5 +965,5 @@
       type: array
       items:
-        $ref: '#/components/schemas/Log'
+        $ref: '#/components/schemas/LogMetaData'
     LogGeoJson:
       title: Log in GeoJson format
@@ -1312,2 +1281,4 @@
   - name: devices
     description: All actions used to manage devices of an user
+  - name: logs
+    description: All actions used to manage logs of an water, device, gauge or user
