Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision 13cbe66f44f250d5e3f76cda11e899f528e510df)
+++ src/mapservice/openapi.yaml	(revision ec8d5d05863dc72303b3ccd9bcf16d306f0fcccb)
@@ -23,5 +23,5 @@
         default: v1
 paths:
-  '/user':
+  /user:
     get:
       description: Returns information of current/authorized user
@@ -82,5 +82,5 @@
           content:
             application/json: {}
-  '/user/apikey_create':
+  /user/apikey_create:
     get:
       description: Generates and returns a new API key for current user
@@ -157,5 +157,5 @@
                 type: string
               description: 'URL to the website, showing the result of the activation'
-  '/waters':
+  /waters:
     get:
       description: Returns all waters
@@ -375,4 +375,102 @@
         '400':
           $ref: '#/components/responses/BadRequest'
+        '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: []
+      parameters:
+        - name: user_id
+          in: path
+          description: User ID
+          required: true
+          schema:
+            $ref: '#/components/schemas/itemId'
+      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'
@@ -455,4 +553,8 @@
         coordinates:
           $ref: '#/components/schemas/point'
+    sensorDepth:
+      type: number
+      title: 'Depth of sensor beneath water level in cm (positive means below water)'
+      minimum: 0
     User:
       title: User
@@ -511,5 +613,5 @@
         - name
     WaterCreation:
-      title: Water
+      title: Water for Creation
       type: object
       properties:
@@ -591,4 +693,38 @@
       items:
         $ref: '#/components/schemas/GaugeGeoJson'
+    Device:
+      title: Device
+      type: object
+      properties:
+        deviceId:
+          $ref: '#/components/schemas/itemId'
+        name:
+          $ref: '#/components/schemas/itemName'
+        sensorDepth:
+          $ref: '#/components/schemas/sensorDepth'
+        comment:
+              $ref: '#/components/schemas/comment'
+      required:
+        - deviceId
+        - name
+        - sensorDepth
+    DeviceCreation:
+      title: Device for Creation
+      type: object
+      properties:
+        name:
+          $ref: '#/components/schemas/itemName'
+        sensorDepth:
+          $ref: '#/components/schemas/sensorDepth'
+        comment:
+              $ref: '#/components/schemas/comment'
+      required:
+        - name
+        - sensorDepth
+    devices:
+      title: Devices
+      type: array
+      items:
+        $ref: '#/components/schemas/Device'
     HttpError:
       title: HTTP Error Response Object
@@ -704,5 +840,5 @@
           coordinates:
             - 90.136111
-            - 29.934722 
+            - 29.934722
           properties:
             name: New Orleans
@@ -716,5 +852,5 @@
             coordinates:
               - 90.136111
-              - 29.934722 
+              - 29.934722
             properties:
               name: New Orleans
@@ -722,4 +858,17 @@
               comment: Gauge for Mississippi in New Orleans
       summary: A sample list of gauges in GeoJson format
+    Device:
+      value:
+        deviceId: 1
+        name: Lovely Boat
+        sensorDepth: 0.2
+        comment: Really a pleasure to measure
+      summary: A sample device
+    devices:
+      value:
+        - deviceId: 1
+          name: Lovely Boat
+          sensorDepth: 0.2
+          comment: Really a pleasure to measure
     HttpError:
       value:
@@ -761,2 +910,4 @@
   - name: users
     description: All actions used to manage users and api keys
+  - name: devices
+    description: All actions used to manage devices of an user
