From 65ae8dd774664470efbf6d811787bf75dfdadd82 Mon Sep 17 00:00:00 2001 From: Mohamed Rashd Date: Mon, 31 Jan 2022 23:48:24 +0530 Subject: [PATCH] Fix grafana api context path --- .../mgt/grafana/proxy/api/service/GrafanaAPIProxyService.java | 4 ++-- .../entgra/ui/request/interceptor/util/HandlerConstants.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/analytics-mgt/grafana-mgt/io.entgra.analytics.mgt.grafana.proxy.api/src/main/java/io/entgra/analytics/mgt/grafana/proxy/api/service/GrafanaAPIProxyService.java b/components/analytics-mgt/grafana-mgt/io.entgra.analytics.mgt.grafana.proxy.api/src/main/java/io/entgra/analytics/mgt/grafana/proxy/api/service/GrafanaAPIProxyService.java index 3921e6fc348..c154f9149c2 100644 --- a/components/analytics-mgt/grafana-mgt/io.entgra.analytics.mgt.grafana.proxy.api/src/main/java/io/entgra/analytics/mgt/grafana/proxy/api/service/GrafanaAPIProxyService.java +++ b/components/analytics-mgt/grafana-mgt/io.entgra.analytics.mgt.grafana.proxy.api/src/main/java/io/entgra/analytics/mgt/grafana/proxy/api/service/GrafanaAPIProxyService.java @@ -112,7 +112,7 @@ public interface GrafanaAPIProxyService { @Path("/dashboards/uid/{uid}") @ApiOperation( produces = MediaType.APPLICATION_JSON, - httpMethod = "POST", + httpMethod = "GET", value = "Grafana dashboard details API proxy", tags = "Analytics", extensions = { @@ -145,7 +145,7 @@ public interface GrafanaAPIProxyService { @Path("/alerts/states-for-dashboard") @ApiOperation( produces = MediaType.APPLICATION_JSON, - httpMethod = "POST", + httpMethod = "GET", value = "Get Grafana alert states for dashboard details API proxy", tags = "Analytics", extensions = { diff --git a/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/util/HandlerConstants.java b/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/util/HandlerConstants.java index df0e085b0a5..153ace868a8 100644 --- a/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/util/HandlerConstants.java +++ b/components/ui-request-interceptor/io.entgra.ui.request.interceptor/src/main/java/io/entgra/ui/request/interceptor/util/HandlerConstants.java @@ -84,7 +84,7 @@ public class HandlerConstants { public static final String WSS_PROTOCOL = "wss"; public static final String WS_PROTOCOL = "ws"; public static final String REMOTE_SESSION_CONTEXT = "/remote/session/clients"; - public static final String GRAFANA_API = "/api/device-mgt/v1.0/reports/grafana"; + public static final String GRAFANA_API = "/api/grafana-mgt/v1.0"; public static final String IOT_CORE_HOST_ENV_VAR = "iot.core.host"; public static final String IOT_CORE_HTTP_PORT_ENV_VAR = "iot.core.http.port";