diff options
author | Abyss777 <abyss@fox5.ru> | 2018-05-15 14:27:24 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-05-15 14:31:32 +0500 |
commit | b55fcb20a0d4144b4ffc05c6431a5a49223c1b77 (patch) | |
tree | 3a6edb262217f417ba57fecc8f94ba6baf9d29bb /swagger.json | |
parent | 723bb89389f4de335a9a6527da62fb58c18b154c (diff) | |
download | trackermap-server-b55fcb20a0d4144b4ffc05c6431a5a49223c1b77.tar.gz trackermap-server-b55fcb20a0d4144b4ffc05c6431a5a49223c1b77.tar.bz2 trackermap-server-b55fcb20a0d4144b4ffc05c6431a5a49223c1b77.zip |
Actualize swagger.json
Diffstat (limited to 'swagger.json')
-rw-r--r-- | swagger.json | 129 |
1 files changed, 128 insertions, 1 deletions
diff --git a/swagger.json b/swagger.json index e6c242a3e..908b2eeed 100644 --- a/swagger.json +++ b/swagger.json @@ -1350,6 +1350,90 @@ } } } + }, + "/maintenances": { + "get": { + "summary": "Fetch a list of Maintenances", + "description": "Without params, it returns a list of Maintenances the user has access to", + "parameters": [ + { + "$ref": "#/parameters/all" + }, + { + "$ref": "#/parameters/userId" + }, + { + "$ref": "#/parameters/deviceId" + }, + { + "$ref": "#/parameters/groupId" + }, + { + "$ref": "#/parameters/refresh" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Maintenance" + } + } + } + } + }, + "post": { + "summary": "Create a Maintenance", + "parameters": [ + { + "$ref": "#/parameters/Maintenance" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Maintenance" + } + } + } + } + }, + "/maintenances/{id}": { + "put": { + "summary": "Update a Maintenance", + "parameters": [ + { + "$ref": "#/parameters/entityId" + }, + { + "$ref": "#/parameters/Maintenance" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Maintenance" + } + } + } + }, + "delete": { + "summary": "Delete a Maintenance", + "parameters": [ + { + "$ref": "#/parameters/entityId" + } + ], + "responses": { + "204": { + "description": "No Content" + } + } + } } }, "definitions": { @@ -1427,7 +1511,7 @@ "readonly": { "type": "boolean" }, - "admin": { + "administrator": { "type": "boolean" }, "map": { @@ -1471,6 +1555,9 @@ "limitCommands": { "type": "boolean" }, + "poiLayer": { + "type": "string" + }, "token": { "type": "string" }, @@ -1503,6 +1590,9 @@ "mapUrl": { "type": "string" }, + "poiLayer": { + "type": "string" + }, "latitude": { "type": "number" }, @@ -1558,6 +1648,9 @@ "status": { "type": "string" }, + "disabled": { + "type": "boolean" + }, "lastUpdate": { "type": "string", "format": "date-time", @@ -1688,6 +1781,9 @@ "sms": { "type": "boolean" }, + "calendarId": { + "type": "integer" + }, "attributes": {} } }, @@ -1720,6 +1816,9 @@ "geofenceId": { "type": "integer" }, + "maintenanceId": { + "type": "integer" + }, "attributes": {} } }, @@ -1937,6 +2036,26 @@ }, "atributes": {} } + }, + "Maintenance": { + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "start": { + "type": "number" + }, + "period": { + "type": "number" + }, + "atributes": {} + } } }, "parameters": { @@ -2056,6 +2175,14 @@ "$ref": "#/definitions/Notification" } }, + "Maintenance": { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Maintenance" + } + }, "deviceIdArray": { "name": "deviceId", "in": "query", |