From c6f65d96759e3d3ed3d4dd1c3f9e7167077505f6 Mon Sep 17 00:00:00 2001 From: Rajitha Kumara Date: Wed, 14 Aug 2024 23:21:55 +0530 Subject: [PATCH] Refactor the code --- .../core/apimgt/webapp/publisher/APIPublisherUtil.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherUtil.java b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherUtil.java index df9f76b285..f8d7638480 100644 --- a/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherUtil.java +++ b/components/apimgt-extensions/io.entgra.device.mgt.core.apimgt.webapp.publisher/src/main/java/io/entgra/device/mgt/core/apimgt/webapp/publisher/APIPublisherUtil.java @@ -357,6 +357,14 @@ public class APIPublisherUtil { apiConfig.setUriTemplates(templates); } + /** + * This method will extract and retrieve the API resource configuration by processing the API resources + * @param standardContext {@link StandardContext} + * @param servletContext {@link ServletContext} + * @return Extracted {@link APIResourceConfiguration} list describing from the servlet context + * @throws IOException Throws when error occurred while processing the swagger annotations + * @throws ClassNotFoundException Throws when error occurred while extracting api configurations + */ public static List getAPIResourceConfiguration(StandardContext standardContext, ServletContext servletContext) throws IOException, ClassNotFoundException { List apiResourceConfigurations = new ArrayList<>();