aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swagger.json11
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"
}
}
},