aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorRoberto Murguia <robertmalvarado@gmail.com>2023-04-04 17:14:29 -0500
committerRoberto Murguia <robertmalvarado@gmail.com>2023-04-04 17:45:08 -0500
commit9423dad9bc56674dd864897c9c0265ca8cea6670 (patch)
treea8a99cb19856d3e33d91fcfbfb197eb08204eede /swagger.json
parent836fb2221dedae55c3f8457f35294b3753f095c8 (diff)
downloadtrackermap-server-9423dad9bc56674dd864897c9c0265ca8cea6670.tar.gz
trackermap-server-9423dad9bc56674dd864897c9c0265ca8cea6670.tar.bz2
trackermap-server-9423dad9bc56674dd864897c9c0265ca8cea6670.zip
Add DELETE api endpoint for Positions
Diffstat (limited to 'swagger.json')
-rw-r--r--swagger.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/swagger.json b/swagger.json
index 6c1e21d28..467925ca9 100644
--- a/swagger.json
+++ b/swagger.json
@@ -873,6 +873,54 @@
}
}
}
+ },
+ "delete": {
+ "summary": "Deletes all the Positions of a device in the time span specified",
+ "description": "",
+ "tags": [
+ "Positions"
+ ],
+ "parameters": [
+ {
+ "name": "deviceId",
+ "in": "query",
+ "description": "",
+ "schema": {
+ "type": "integer"
+ },
+ "required": true
+ },
+ {
+ "name": "from",
+ "in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "required": true
+ },
+ {
+ "name": "to",
+ "in": "query",
+ "description": "in IS0 8601 format. eg. `1963-11-22T18:30:00Z`",
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "required": true
+ }
+ ],
+ "responses": {
+ "204": {
+ "description": "No Content",
+ "content": {}
+ },
+ "400": {
+ "description": "Bad Request",
+ "content": {}
+ }
+ }
}
},
"/server": {