From cdca700bbc71af59acfe340b54d464f28206bb79 Mon Sep 17 00:00:00 2001 From: Dmitry Puzikov Date: Tue, 3 Mar 2020 10:18:41 +0100 Subject: Fix SDC-BE Swagger General reorganisation of APIs rendering done. Fixed mix of swagger.v2 and new swagger.v3 conflicting annotatons. Moved to newer version of swagger-ui. Removed unused/inconsistent parts of pom.xml. Change-Id: Id1356b766caff6bf5817768c1a0f9b80541b85e8 Issue-ID: SDC-2718 Signed-off-by: Dmitry Puzikov --- catalog-be/src/main/webapp/WEB-INF/web.xml | 100 ++++------------------------- catalog-be/src/main/webapp/index.html | 7 -- catalog-be/src/main/webapp/index.jsp | 5 -- 3 files changed, 14 insertions(+), 98 deletions(-) delete mode 100644 catalog-be/src/main/webapp/index.html delete mode 100644 catalog-be/src/main/webapp/index.jsp (limited to 'catalog-be/src/main/webapp') diff --git a/catalog-be/src/main/webapp/WEB-INF/web.xml b/catalog-be/src/main/webapp/WEB-INF/web.xml index 3acf64ca6f..9991e30a86 100644 --- a/catalog-be/src/main/webapp/WEB-INF/web.xml +++ b/catalog-be/src/main/webapp/WEB-INF/web.xml @@ -8,11 +8,14 @@ org.glassfish.jersey.servlet.ServletContainer jersey.config.server.provider.packages - io.swagger.jaxrs.json, org.openecomp.sdc.be.servlets + + io.swagger.v3.jaxrs2.integration.resources, + org.openecomp.sdc.be.servlets + jersey.config.server.provider.classnames - io.swagger.jersey.listing.ApiListingResourceJSON, + org.glassfish.jersey.media.multipart.MultiPartFeature, org.openecomp.sdc.be.filters.BeServletFilter, org.openecomp.sdc.be.filters.ComponentsAvailabilityFilter, @@ -24,15 +27,6 @@ org.openecomp.sdc.be.view.MixinModelWriter, org.openecomp.sdc.config.ObjectMapperProvider - - - - swagger.scanner.id - test.1 - - - swagger.config.id - test.1 exclude_url_endpoints @@ -52,30 +46,24 @@ org.glassfish.jersey.servlet.ServletContainer jersey.config.server.provider.packages - io.swagger.jaxrs.json, org.openecomp.sdc.be.distribution.servlet, org.openecomp.sdc.be.externalapi.servlet + + io.swagger.v3.jaxrs2.integration.resources, + org.openecomp.sdc.be.distribution.servlet, + org.openecomp.sdc.be.externalapi.servlet + jersey.config.server.provider.classnames - io.swagger.jersey.listing.ApiListingResourceJSON, + org.glassfish.jersey.media.multipart.MultiPartFeature, org.openecomp.sdc.be.filters.BeServletFilter, + org.openecomp.sdc.be.filters.ComponentsAvailabilityFilter, org.openecomp.sdc.be.servlets.exception.DefaultExceptionMapper, org.openecomp.sdc.be.servlets.exception.ComponentExceptionMapper, org.openecomp.sdc.be.servlets.exception.StorageExceptionMapper, org.openecomp.sdc.be.filters.BasicAuthenticationFilter - - - - - swagger.scanner.id - test.2 - - - - swagger.config.id - test.2 + - 1 true @@ -85,66 +73,6 @@ /sdc/* - - Internal-APIs-Configurations - io.swagger.jaxrs.config.DefaultJaxrsConfig - - - api.version - 1.2.0 - - - - swagger.api.title - Internal API's - - - - swagger.api.basepath - /sdc2/rest - - - - swagger.scanner.id - test.1 - - - - swagger.config.id - test.1 - - - 2 - true - - - - External and Distribution API's - io.swagger.jaxrs.config.DefaultJaxrsConfig - - - api.version - 1.2.0 - - - - swagger.api.title - DistributionAndExternalAPIs - - - - swagger.api.basepath - - /sdc - - - - swagger.context.id - test.2 - - 2 - - ECOMPServlet @@ -310,6 +238,6 @@ - index.html + swagger-ui/index.html diff --git a/catalog-be/src/main/webapp/index.html b/catalog-be/src/main/webapp/index.html deleted file mode 100644 index 4b26987758..0000000000 --- a/catalog-be/src/main/webapp/index.html +++ /dev/null @@ -1,7 +0,0 @@ - - - -

Hello Catalog Server

- - - \ No newline at end of file diff --git a/catalog-be/src/main/webapp/index.jsp b/catalog-be/src/main/webapp/index.jsp deleted file mode 100644 index c38169bb95..0000000000 --- a/catalog-be/src/main/webapp/index.jsp +++ /dev/null @@ -1,5 +0,0 @@ - - -

Hello World!

- - -- cgit 1.2.3-korg