diff --git a/.gitignore b/.gitignore index 5adbe0d..5bf6363 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .idea/** apiserver/.openapi-generator/** apiserver/api/** -apiserver/*_service.go \ No newline at end of file +apiserver/*_service.go +/apiservices/http-client.private.env.json diff --git a/apiservices/example_requests_configuration.http b/apiservices/example_requests.http similarity index 79% rename from apiservices/example_requests_configuration.http rename to apiservices/example_requests.http index bf49a95..26035c3 100644 --- a/apiservices/example_requests_configuration.http +++ b/apiservices/example_requests.http @@ -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 { @@ -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 { diff --git a/eliona/dashboards.go b/eliona/dashboards.go index 8f2626c..5bcde6d 100644 --- a/eliona/dashboards.go +++ b/eliona/dashboards.go @@ -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