From e9ff86cbd26db4a699a17d7d60727334e219b6d0 Mon Sep 17 00:00:00 2001 From: Murali-P Date: Wed, 25 Apr 2018 11:23:07 +0530 Subject: Enable swagger documentation for API Swagger UI and Swagger docs Issue-ID: VNFSDK-157 Change-Id: I9aeda5c364741c975a8d0d8b788a22c9d3f5f39f Signed-off-by: Murali-P --- .../src/main/webapp/WEB-INF/web.xml | 23 ++++++-- .../src/main/webapp/apidocs/index.html | 61 ++++++++++++++++++++++ 2 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/apidocs/index.html (limited to 'vnfmarket-be/vnf-sdk-marketplace/src') diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/WEB-INF/web.xml b/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/WEB-INF/web.xml index 8dc5575c..cf229269 100644 --- a/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/WEB-INF/web.xml +++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/WEB-INF/web.xml @@ -9,17 +9,34 @@ org.glassfish.jersey.servlet.ServletContainer jersey.config.server.provider.packages - org.onap.vnfsdk.marketplace.resource + io.swagger.jaxrs.listing, + org.onap.vnfsdk.marketplace.resource + jersey.config.server.provider.classnames org.glassfish.jersey.media.multipart.MultiPartFeature - + + 1 Jersey RESTful Application /onapapi/vnfsdk-marketplace/v1/* - + + + + Jersey2Config + io.swagger.jersey.config.JerseyJaxrsConfig + + api.version + 1.0.0 + + + swagger.api.basepath + http://localhost:8702//onapapi/vnfsdk-marketplace/v1 + + 2 + CorsFilter diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/apidocs/index.html b/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/apidocs/index.html new file mode 100644 index 00000000..47f9c8ac --- /dev/null +++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/webapp/apidocs/index.html @@ -0,0 +1,61 @@ + + + + + + Swagger UI + + + + + + + + +
+ + + + + + -- cgit 1.2.3-korg