API: return resource ID when deleting datasource with UID and library element (#41342)

* API: return resource ID when deleting datasource and library element

* keep status codes consistent

* fix element ID

* add test

* improve response struct

* update endpoints documentation

* LibraryElementIDResponse -> DeleteLibraryElementResponse
This commit is contained in:
Agnès Toulet authored and GitHub committed 2021-11-05 15:06:14 +01:00
1 parent e0ad74a815
commit 3a6b8535b1
7 files changed
+34 -8

No files matched your search

+2 -1
View File
@@ -442,7 +442,8 @@ HTTP/1.1 200
Content-Type: application/json
{
"message": "Library element deleted"
"message": "Library element deleted",
"id": 28
}
```