mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
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:
@ -557,7 +557,10 @@ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
||||
HTTP/1.1 200
|
||||
Content-Type: application/json
|
||||
|
||||
{"message":"Data source deleted"}
|
||||
{
|
||||
"message": "Data source deleted",
|
||||
"id": 1
|
||||
}
|
||||
```
|
||||
|
||||
## Delete an existing data source by name
|
||||
|
Reference in New Issue
Block a user