From 540b90285d3493a10cb95d72196a4afe4b4acb5d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 24 Nov 2018 08:22:23 +1300 Subject: Update API documentation --- swagger.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'swagger.json') diff --git a/swagger.json b/swagger.json index 183330bdd..54ff10d1b 100644 --- a/swagger.json +++ b/swagger.json @@ -286,9 +286,9 @@ } } }, - "/devices/{id}/distance": { + "/devices/{id}/accumulators": { "put": { - "summary": "Update the distance counter of the Device", + "summary": "Update total distance and hours of the Device", "parameters": [ { "$ref": "#/parameters/entityId" @@ -298,7 +298,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DeviceTotalDistance" + "$ref": "#/definitions/DeviceAccumulators" } } ], @@ -1977,7 +1977,7 @@ } } }, - "DeviceTotalDistance": { + "DeviceAccumulators": { "properties": { "deviceId": { "type": "integer" @@ -1985,6 +1985,9 @@ "totalDistance": { "type": "number", "description": "in meters" + }, + "hours": { + "type": "number" } } }, -- cgit v1.2.3