|
|
@@ -195,7 +195,7 @@ parent = "http_api"
|
|
|
|
|
|
{"message":"Datasource updated", "id": 1, "name": "test_datasource"}
|
|
|
|
|
|
-## Delete an existing data source
|
|
|
+## Delete an existing data source by id
|
|
|
|
|
|
`DELETE /api/datasources/:datasourceId`
|
|
|
|
|
|
@@ -213,6 +213,24 @@ parent = "http_api"
|
|
|
|
|
|
{"message":"Data source deleted"}
|
|
|
|
|
|
+## Delete an existing data source by name
|
|
|
+
|
|
|
+`DELETE /api/datasources/name/:datasourceName`
|
|
|
+
|
|
|
+**Example Request**:
|
|
|
+
|
|
|
+ DELETE /api/datasources/name/test_datasource HTTP/1.1
|
|
|
+ Accept: application/json
|
|
|
+ Content-Type: application/json
|
|
|
+ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
|
|
|
+
|
|
|
+**Example Response**:
|
|
|
+
|
|
|
+ HTTP/1.1 200
|
|
|
+ Content-Type: application/json
|
|
|
+
|
|
|
+ {"message":"Data source deleted"}
|
|
|
+
|
|
|
## Data source proxy calls
|
|
|
|
|
|
`GET /api/datasources/proxy/:datasourceId/*`
|