1
0

Fix deleting task relations

While the request body of a DELETE request *can* have data in it, it is not really supported and pretty much undocumented. As such, it doesn't work in all clients and probably broke with recent updates.
This fixes this by moving all parts of the task relation used to identify it in the url.

More Info: https://stackoverflow.com/a/299696/10924593
This commit is contained in:
kolaente
2021-02-18 23:35:20 +01:00
parent 3afedc25f0
commit eb3a945678
5 changed files with 92 additions and 47 deletions

View File

@ -5313,7 +5313,9 @@ var doc = `{
}
}
}
},
}
},
"/tasks/{taskID}/relations/{relationKind}/{otherTaskId}": {
"delete": {
"security": [
{
@ -5346,6 +5348,20 @@ var doc = `{
"name": "taskID",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The kind of the relation. See the TaskRelation type for more info.",
"name": "relationKind",
"in": "path",
"required": true
},
{
"type": "integer",
"description": "The id of the other task.",
"name": "otherTaskID",
"in": "path",
"required": true
}
],
"responses": {