aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-24 08:22:23 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-24 08:22:23 +1300
commit540b90285d3493a10cb95d72196a4afe4b4acb5d (patch)
treeda950c2bf0a391143db0e3adef9b65dc57cfa731
parent5b35e2a52a9b94f712a450330118ec845f1f2649 (diff)
downloadtrackermap-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.tar.gz
trackermap-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.tar.bz2
trackermap-server-540b90285d3493a10cb95d72196a4afe4b4acb5d.zip
Update API documentation
-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"
}
}
},