mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactor the code
This commit is contained in:
parent
26d4ffdf8a
commit
c6f65d9675
@ -357,6 +357,14 @@ public class APIPublisherUtil {
|
|||||||
apiConfig.setUriTemplates(templates);
|
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<APIResourceConfiguration> getAPIResourceConfiguration(StandardContext standardContext, ServletContext servletContext)
|
public static List<APIResourceConfiguration> getAPIResourceConfiguration(StandardContext standardContext, ServletContext servletContext)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException, ClassNotFoundException {
|
||||||
List<APIResourceConfiguration> apiResourceConfigurations = new ArrayList<>();
|
List<APIResourceConfiguration> apiResourceConfigurations = new ArrayList<>();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user