Skip to content

Commit 18860ac

Browse files
add project id to generate dashboard
1 parent ec0992c commit 18860ac

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.idea/**
33
apiserver/.openapi-generator/**
44
apiserver/api/**
5-
apiserver/*_service.go
5+
apiserver/*_service.go
6+
/apiservices/http-client.private.env.json

apiservices/example_requests_configuration.http renamed to apiservices/example_requests.http

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
### Get configs
2-
GET http://localhost:8033/v1/configs
2+
GET {{api-server}}/v1/configs
33

44
### Get config
5-
GET http://localhost:8033/v1/configs/1
5+
GET {{api-server}}/v1/configs/1
6+
7+
### Dashboards template names
8+
GET{{api-server}}/v1/dashboard-template-names
9+
10+
### Dashboards template
11+
GET{{api-server}}/v1/dashboard-templates/Hailo Smart Waste?projectId=99
612

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

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

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

3137
{

eliona/dashboards.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
func HailoSmartWasteDashboard(projectId string) (api.Dashboard, error) {
2525
dashboard := api.Dashboard{}
2626
dashboard.Name = "Hailo Smart Waste"
27+
dashboard.ProjectId = projectId
2728
dashboard.Widgets = []api.Widget{}
2829

2930
// Process bins

0 commit comments

Comments
 (0)