Skip to content

Commit

Permalink
Update API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 23, 2018
1 parent 5b35e2a commit 540b902
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -298,7 +298,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/DeviceTotalDistance"
"$ref": "#/definitions/DeviceAccumulators"
}
}
],
Expand Down Expand Up @@ -1977,14 +1977,17 @@
}
}
},
"DeviceTotalDistance": {
"DeviceAccumulators": {
"properties": {
"deviceId": {
"type": "integer"
},
"totalDistance": {
"type": "number",
"description": "in meters"
},
"hours": {
"type": "number"
}
}
},
Expand Down

0 comments on commit 540b902

Please sign in to comment.