Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8dc75f79
Unverified
Commit
8dc75f79
authored
Jul 31, 2020
by
Agnès Toulet
Committed by
GitHub
Jul 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: Enrich endpoints with ID (#26691)
parent
5cc65df3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
5 deletions
+22
-5
docs/sources/http_api/dashboard.md
+10
-2
docs/sources/http_api/data_source.md
+4
-1
docs/sources/http_api/folder.md
+2
-1
pkg/api/dashboard.go
+1
-0
pkg/api/datasources.go
+4
-1
pkg/api/folder.go
+1
-0
No files found.
docs/sources/http_api/dashboard.md
View file @
8dc75f79
...
...
@@ -332,7 +332,11 @@ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
HTTP/1.1 200
Content-Type: application/json
{"title": "Production Overview"}
{
"title": "Production Overview",
"message": "Dashboard Production Overview deleted",
"id": 2
}
```
Status Codes:
...
...
@@ -506,7 +510,11 @@ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
HTTP/1.1 200
Content-Type: application/json
{"title": "Production Overview"}
{
"title": "Production Overview",
"message": "Dashboard Production Overview deleted",
"id": 2
}
```
Status Codes:
...
...
docs/sources/http_api/data_source.md
View file @
8dc75f79
...
...
@@ -419,7 +419,10 @@ Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
HTTP/1.1 200
Content-Type: application/json
{"message":"Data source deleted"}
{
"message":"Data source deleted",
"id": 1
}
```
## Data source proxy calls
...
...
docs/sources/http_api/folder.md
View file @
8dc75f79
...
...
@@ -264,7 +264,8 @@ HTTP/1.1 200
Content-Type: application/json
{
"message":"Folder deleted"
"message":"Folder deleted",
"id": 2
}
```
...
...
pkg/api/dashboard.go
View file @
8dc75f79
...
...
@@ -210,6 +210,7 @@ func deleteDashboard(c *models.ReqContext) Response {
return
JSON
(
200
,
util
.
DynMap
{
"title"
:
dash
.
Title
,
"message"
:
fmt
.
Sprintf
(
"Dashboard %s deleted"
,
dash
.
Title
),
"id"
:
dash
.
Id
,
})
}
...
...
pkg/api/datasources.go
View file @
8dc75f79
...
...
@@ -127,7 +127,10 @@ func DeleteDataSourceByName(c *models.ReqContext) Response {
return
Error
(
500
,
"Failed to delete datasource"
,
err
)
}
return
Success
(
"Data source deleted"
)
return
JSON
(
200
,
util
.
DynMap
{
"message"
:
"Data source deleted"
,
"id"
:
getCmd
.
Result
.
Id
,
})
}
func
validateURL
(
tp
string
,
u
string
)
Response
{
...
...
pkg/api/folder.go
View file @
8dc75f79
...
...
@@ -93,6 +93,7 @@ func DeleteFolder(c *models.ReqContext) Response {
return
JSON
(
200
,
util
.
DynMap
{
"title"
:
f
.
Title
,
"message"
:
fmt
.
Sprintf
(
"Folder %s deleted"
,
f
.
Title
),
"id"
:
f
.
Id
,
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment