Skip to content

Commit

Permalink
add project id to generate dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-goebel committed Nov 23, 2022
1 parent ec0992c commit 18860ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.idea/**
apiserver/.openapi-generator/**
apiserver/api/**
apiserver/*_service.go
apiserver/*_service.go
/apiservices/http-client.private.env.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
### Get configs
GET http://localhost:8033/v1/configs
GET {{api-server}}/v1/configs

### Get config
GET http://localhost:8033/v1/configs/1
GET {{api-server}}/v1/configs/1

### Dashboards template names
GET{{api-server}}/v1/dashboard-template-names

### Dashboards template
GET{{api-server}}/v1/dashboard-templates/Hailo Smart Waste?projectId=99

### Put config (insert without id)
PUT http://localhost:8033/v1/configs
PUT {{api-server}}/v1/configs
Content-Type: application/json; charset=UTF-8

{
Expand All @@ -25,7 +31,7 @@ Content-Type: application/json; charset=UTF-8
}

### Put update (with id)
PUT http://localhost:8033/v1/configs
PUT {{api-server}}/v1/configs
Content-Type: application/json; charset=UTF-8

{
Expand Down
1 change: 1 addition & 0 deletions eliona/dashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
func HailoSmartWasteDashboard(projectId string) (api.Dashboard, error) {
dashboard := api.Dashboard{}
dashboard.Name = "Hailo Smart Waste"
dashboard.ProjectId = projectId
dashboard.Widgets = []api.Widget{}

// Process bins
Expand Down

0 comments on commit 18860ac

Please sign in to comment.