Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision ec8d5d05863dc72303b3ccd9bcf16d306f0fcccb)
+++ src/mapservice/openapi.yaml	(revision 6b713e6ca5303e406d5a4ac9053c3ef773bb9550)
@@ -377,5 +377,5 @@
         '404':
           $ref: '#/components/responses/NotFound'
-  '/devices':
+  /devices:
     get:
       description: Returns all devices of user
@@ -417,11 +417,4 @@
         - basicAuth: []
         - apiKeyAuth: []
-      parameters:
-        - name: user_id
-          in: path
-          description: User ID
-          required: true
-          schema:
-            $ref: '#/components/schemas/itemId'
       requestBody:
         content:
@@ -430,5 +423,5 @@
               $ref: '#/components/schemas/DeviceCreation'
             example:
-              name: "Lovely Boat"
+              name: Lovely Boat
               sensorDepth: 2
       responses:
@@ -473,4 +466,37 @@
                 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'
@@ -555,5 +581,5 @@
     sensorDepth:
       type: number
-      title: 'Depth of sensor beneath water level in cm (positive means below water)'
+      title: Depth of sensor beneath water level in cm (positive means below water)
       minimum: 0
     User:
@@ -704,5 +730,5 @@
           $ref: '#/components/schemas/sensorDepth'
         comment:
-              $ref: '#/components/schemas/comment'
+          $ref: '#/components/schemas/comment'
       required:
         - deviceId
@@ -718,5 +744,5 @@
           $ref: '#/components/schemas/sensorDepth'
         comment:
-              $ref: '#/components/schemas/comment'
+          $ref: '#/components/schemas/comment'
       required:
         - name
@@ -731,11 +757,17 @@
       type: object
       properties:
-        code:
-          type: integer
-        message:
-          type: string
+        type:
+            type: string
+        title:
+            type: string
+        detail:
+            type: string
+        instance:
+            type: string
       required:
-        - code
-        - message
+        - type
+        - title
+        - detail
+        - instance
   parameters:
     orderBy:
@@ -873,11 +905,13 @@
     HttpError:
       value:
-        code: 404
-        message: Water with id 999999 not found
+        type: "http://example.com/waters/not-found"
+        title: "Water 1 not found"
+        detail: "There is no water with id 1 in database"
+        instance: "http://example.net/waters/1"
   responses:
     BadRequest:
       description: Bad Request (400)
       content:
-        application/json:
+        application/problem+json:
           schema:
             $ref: '#/components/schemas/HttpError'
@@ -888,5 +922,5 @@
       description: Unauthorized (401) acces to resource
       content:
-        application/json:
+        application/problem+json:
           schema:
             $ref: '#/components/schemas/HttpError'
@@ -897,5 +931,5 @@
       description: Water with given Id not found
       content:
-        application/json:
+        application/problem+json:
           schema:
             $ref: '#/components/schemas/HttpError'
