From d07e109271bacc8363458d4cd04397afec79596e Mon Sep 17 00:00:00 2001 From: eschcam Date: Wed, 14 Dec 2022 11:34:25 +0000 Subject: Add link to Swagger UI in Readme & Redirect root Turns out the default URL of http://localhost:8080/ only loads the index.html and not the other assets. Going to http://localhost:8080/swagger-ui/index.html loads everything correctly Also added a redirect for the root URL to the correct address for the Swagger UI Issue-ID: SDC-4292 Signed-off-by: eschcam Change-Id: Ibca5956d1d2f5e18ba41e623329b199c8e9db9a5 --- catalog-be/src/main/docker/backend/startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'catalog-be/src/main/docker/backend/startup.sh') diff --git a/catalog-be/src/main/docker/backend/startup.sh b/catalog-be/src/main/docker/backend/startup.sh index c64e4ac200..0f778a315e 100644 --- a/catalog-be/src/main/docker/backend/startup.sh +++ b/catalog-be/src/main/docker/backend/startup.sh @@ -8,7 +8,7 @@ export JAVA_OPTIONS="$JAVA_OPTIONS -Dconfig.home=$JETTY_BASE/config \ -Dartifactgenerator.config=$JETTY_BASE/config/catalog-be/Artifact-Generator.properties \ -Donboarding_configuration.yaml=$JETTY_BASE/config/onboarding-be/onboarding_configuration.yaml \ -Djavax.net.ssl.trustStore=$JETTY_BASE/etc/org.onap.sdc.trust.jks \ - -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0" + -Djavax.net.ssl.trustStorePassword=z+KEj;t+,KN^iimSiS89e#p0" cd $JETTY_BASE/chef-solo chef-solo -c solo.rb -E ${ENVNAME} @@ -16,5 +16,6 @@ chef-solo -c solo.rb -E ${ENVNAME} # Execute Jetty cd $JETTY_HOME echo "jetty.httpConfig.sendServerVersion=false" >> $JETTY_HOME/start.d/start.ini +echo "$JETTY_BASE/etc/rewrite-root-to-swagger-ui.xml" >> $JETTY_HOME/start.d/rewrite.ini java $JAVA_OPTIONS -jar "$JETTY_HOME/start.jar" -- cgit 1.2.3-korg