aboutsummaryrefslogtreecommitdiff
path: root/swagger.json
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-04-04 15:50:58 -0700
committerGitHub <noreply@github.com>2023-04-04 15:50:58 -0700
commit0f092e6aac198bd7244f8011a61bb22ab56174cf (patch)
treeca2b6e70b5c1948ddbe09b0e077000308b1ca836 /swagger.json
parent77e98161d8742548ef4082054304bad21f7324ac (diff)
parent9423dad9bc56674dd864897c9c0265ca8cea6670 (diff)
downloadtrackermap-server-0f092e6aac198bd7244f8011a61bb22ab56174cf.tar.gz
trackermap-server-0f092e6aac198bd7244f8011a61bb22ab56174cf.tar.bz2
trackermap-server-0f092e6aac198bd7244f8011a61bb22ab56174cf.zip
Merge pull request #5061 from rovertzxd/feature/delete-positions-endpoint
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 cbdc9effd..39bd6bd61 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": {