diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-24 08:22:23 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-24 08:22:23 +1300 |
commit | 540b90285d3493a10cb95d72196a4afe4b4acb5d (patch) | |
tree | da950c2bf0a391143db0e3adef9b65dc57cfa731 | |
parent | 5b35e2a52a9b94f712a450330118ec845f1f2649 (diff) | |
download | traccar-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.tar.gz traccar-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.tar.bz2 traccar-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.zip |
Update API documentation
-rw-r--r-- | swagger.json | 11 |
1 files changed, 7 insertions, 4 deletions
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" } } }, |