aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-28 11:09:18 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-28 11:09:18 +0500
commite129ae7cdc6d70a1b0d6b5c05b8ce7e3c4b696ec (patch)
treea291f6f801ff88da6c0f817a1db73f602a1464e5
parentae5fe50416df190f5374d084526518a22096871e (diff)
downloadtrackermap-server-e129ae7cdc6d70a1b0d6b5c05b8ce7e3c4b696ec.tar.gz
trackermap-server-e129ae7cdc6d70a1b0d6b5c05b8ce7e3c4b696ec.tar.bz2
trackermap-server-e129ae7cdc6d70a1b0d6b5c05b8ce7e3c4b696ec.zip
Add report models to swagger.json
-rw-r--r--swagger.json58
1 files changed, 57 insertions, 1 deletions
diff --git a/swagger.json b/swagger.json
index 8fdbbf867..4870441b9 100644
--- a/swagger.json
+++ b/swagger.json
@@ -1118,7 +1118,7 @@
},
"deviceId": {
"type": "integer"
- },
+ },
"protocol": {
"type": "string"
},
@@ -1405,6 +1405,62 @@
},
"attributes": {}
}
+ },
+ "ReportSummary": {
+ "properties": {
+ "deviceId": {
+ "type": "integer"
+ },
+ "deviceName": {
+ "type": "string"
+ },
+ "maxSpeed": {
+ "type": "number"
+ },
+ "averageSpeed": {
+ "type": "number"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "engineHours": {
+ "type": "integer"
+ }
+ }
+ },
+ "ReportTrips": {
+ "properties": {
+ "deviceId": {
+ "type": "integer"
+ },
+ "deviceName": {
+ "type": "string"
+ },
+ "maxSpeed": {
+ "type": "number"
+ },
+ "averageSpeed": {
+ "type": "number"
+ },
+ "distance": {
+ "type": "number"
+ },
+ "duration": {
+ "type": "integer"
+ },
+ "startTime": {
+ "type": "string"
+ },
+ "startAddress": {
+ "type": "string"
+ },
+ "endTime": {
+ "type": "string"
+ },
+ "endAddress": {
+ "type": "string"
+ }
+ }
}
}
} \ No newline at end of file