From: Yaroslav Lastivka Date: Tue, 26 Mar 2024 13:30:09 +0000 (+0200) Subject: Fix OpenAPI explorer redirection URL X-Git-Tag: v7.0.4~25 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=ffb7de552e89f092fa9089efc4cf97c321458479;p=netconf.git 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 --- 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