From ffb7de552e89f092fa9089efc4cf97c321458479 Mon Sep 17 00:00:00 2001 From: Yaroslav Lastivka Date: Tue, 26 Mar 2024 15:30:09 +0200 Subject: [PATCH] Fix OpenAPI explorer redirection URL Previously, the redirection path was incorrectly leading to a non-existent URL, causing the OpenAPI explorer to fail to load. The redirection path in getApiExplorer method has been updated to reflect the correct URL structure. JIRA: NETCONF-1281 Change-Id: I2eec3b841c00de324d59d24267281beb2025ddf0 Signed-off-by: Yaroslav Lastivka --- .../opendaylight/restconf/openapi/impl/OpenApiServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/OpenApiServiceImpl.java b/restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/OpenApiServiceImpl.java index 91cd820456..fecd73832d 100644 --- a/restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/OpenApiServiceImpl.java +++ b/restconf/restconf-openapi/src/main/java/org/opendaylight/restconf/openapi/impl/OpenApiServiceImpl.java @@ -83,7 +83,7 @@ public final class OpenApiServiceImpl implements OpenApiService { */ @Override public Response getApiExplorer(final UriInfo uriInfo) { - return Response.seeOther(uriInfo.getBaseUriBuilder().path("../explorer/index.html").build()).build(); + return Response.seeOther(uriInfo.getBaseUriBuilder().path("../../explorer/index.html").build()).build(); } @Override -- 2.36.6