aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json109
1 files changed, 26 insertions, 83 deletions
diff --git a/swagger.json b/swagger.json
index ffe56c9da..eba9e0910 100644
--- a/swagger.json
+++ b/swagger.json
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
- "version": "3.13",
+ "version": "3.14",
"title": "traccar"
},
"host": "demo.traccar.org",
@@ -861,11 +861,26 @@
}
}
},
- "/statistics": {
+ "/reports/stops": {
"get": {
- "summary": "Fetch server Statistics",
+ "summary": "Fetch a list of ReportStops within the time period for the Devices or Groups",
+ "description": "At least one _deviceId_ or one _groupId_ must be passed",
+ "consumes": [
+ "application/json",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+ ],
+ "produces": [
+ "application/json",
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+ ],
"parameters": [
{
+ "$ref": "#/parameters/deviceIdArray"
+ },
+ {
+ "$ref": "#/parameters/groupIdArray"
+ },
+ {
"$ref": "#/parameters/fromTime"
},
{
@@ -878,20 +893,22 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/definitions/Statistics"
+ "$ref": "#/definitions/ReportStops"
}
}
}
}
}
},
- "/attributes/aliases": {
+ "/statistics": {
"get": {
- "summary": "Fetch a list of AttributeAlias",
- "description": "Without params, it returns a list of AttributeAlias from all the user's Devices",
+ "summary": "Fetch server Statistics",
"parameters": [
{
- "$ref": "#/parameters/deviceId"
+ "$ref": "#/parameters/fromTime"
+ },
+ {
+ "$ref": "#/parameters/toTime"
}
],
"responses": {
@@ -900,61 +917,11 @@
"schema": {
"type": "array",
"items": {
- "$ref": "#/definitions/AttributeAlias"
+ "$ref": "#/definitions/Statistics"
}
}
}
}
- },
- "post": {
- "summary": "Set an AttributeAlias",
- "parameters": [
- {
- "$ref": "#/parameters/AttributeAlias"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/AttributeAlias"
- }
- }
- }
- }
- },
- "/attributes/aliases/{id}": {
- "put": {
- "summary": "Update an AttributeAlias",
- "parameters": [
- {
- "$ref": "#/parameters/entityId"
- },
- {
- "$ref": "#/parameters/AttributeAlias"
- }
- ],
- "responses": {
- "200": {
- "description": "OK",
- "schema": {
- "$ref": "#/definitions/AttributeAlias"
- }
- }
- }
- },
- "delete": {
- "summary": "Delete an AttributeAlias",
- "parameters": [
- {
- "$ref": "#/parameters/entityId"
- }
- ],
- "responses": {
- "204": {
- "description": "No Content"
- }
- }
}
},
"/calendars": {
@@ -1714,22 +1681,6 @@
}
}
},
- "AttributeAlias": {
- "properties": {
- "id": {
- "type": "integer"
- },
- "deviceId": {
- "type": "integer"
- },
- "attribute": {
- "type": "string"
- },
- "alias": {
- "type": "string"
- }
- }
- },
"DeviceTotalDistance": {
"properties": {
"deviceId": {
@@ -1868,14 +1819,6 @@
"$ref": "#/definitions/Geofence"
}
},
- "AttributeAlias": {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/AttributeAlias"
- }
- },
"Calendar": {
"name": "body",
"in": "body",