aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSun Howwrongbum <sun@adrenosapient.com>2016-12-13 17:20:50 +0530
committerSun Howwrongbum <sun@adrenosapient.com>2016-12-13 17:20:50 +0530
commit652e3334f1ef13ce99193aacbabf89e2f0989e04 (patch)
treea035a9e85a773566573046caddcd98a70f541a98
parenta04c318ef92623478cf07b2f9ffca90b0f6507ad (diff)
downloadtraccar-server-652e3334f1ef13ce99193aacbabf89e2f0989e04.tar.gz
traccar-server-652e3334f1ef13ce99193aacbabf89e2f0989e04.tar.bz2
traccar-server-652e3334f1ef13ce99193aacbabf89e2f0989e04.zip
[swagger] Add date format in descriptions
- update `host` property
-rw-r--r--swagger.json33
1 files changed, 23 insertions, 10 deletions
diff --git a/swagger.json b/swagger.json
index ea3350a01..de9e190f1 100644
--- a/swagger.json
+++ b/swagger.json
@@ -4,7 +4,7 @@
"version": "3.9",
"title": "traccar"
},
- "host": "traccar.org",
+ "host": "demo.traccar.org",
"basePath": "/api",
"schemes": [
"http"
@@ -399,6 +399,7 @@
{
"name": "from",
"in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
"required": false,
"type": "string",
"format": "date-time"
@@ -406,6 +407,7 @@
{
"name": "to",
"in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
"required": false,
"type": "string",
"format": "date-time"
@@ -1024,15 +1026,18 @@
},
"deviceTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"fixTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"serverTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"outdated": {
"type": "boolean"
@@ -1111,7 +1116,8 @@
},
"expirationTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"deviceLimit": {
"type": "integer"
@@ -1199,7 +1205,8 @@
},
"lastUpdate": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"positionId": {
"type": "integer"
@@ -1340,7 +1347,8 @@
},
"serverTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"deviceId": {
"type": "integer"
@@ -1404,7 +1412,8 @@
},
"startTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"startAddress": {
"type": "string"
@@ -1417,7 +1426,8 @@
},
"endTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"endAddress": {
"type": "string"
@@ -1434,7 +1444,8 @@
"properties": {
"captureTime": {
"type": "string",
- "format": "date-time"
+ "format": "date-time",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`"
},
"activeUsers": {
"type": "integer"
@@ -1607,6 +1618,7 @@
"fromTime": {
"name": "from",
"in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
"required": true,
"type": "string",
"format": "date-time"
@@ -1614,6 +1626,7 @@
"toTime": {
"name": "to",
"in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
"required": true,
"type": "string",
"format": "date-time"