diff --git a/pom.xml b/pom.xml
index 8d8166d..7231cf2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -108,7 +108,11 @@
gson
2.8.8
-
+
+ org.springdoc
+ springdoc-openapi-starter-webmvc-ui
+ 2.5.0
+
com.olympus
common
diff --git a/src/main/java/com/olympus/hermione/controllers/ApplicationBrowserController.java b/src/main/java/com/olympus/hermione/controllers/ApplicationBrowserController.java
index cd139eb..09866e3 100644
--- a/src/main/java/com/olympus/hermione/controllers/ApplicationBrowserController.java
+++ b/src/main/java/com/olympus/hermione/controllers/ApplicationBrowserController.java
@@ -5,19 +5,21 @@ import com.olympus.feign.SourceCodeModule;
import com.olympus.hermione.services.SourceCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class ApplicationBrowserController {
-
+
@Autowired
- SourceCodeService sourceCodeService;
+ private SourceCodeModule sourceCodeModule;
- @GetMapping
- public TreeNode getApplicationNode(String applicationName){
- return sourceCodeService.getApplicationNode(applicationName);
+
+ @GetMapping("/source-viewer/getApplicationTreeNode")
+ public TreeNode getApplicationNode(@RequestParam() String applicationName){
+ return sourceCodeModule.getTreeFromNode(applicationName,"application");
}
}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index e770a6c..44eab70 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -28,4 +28,5 @@ logging.level.org.springframework.ai.chat.client.advisor=DEBUG
eureka.client.serviceUrl.defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
eureka.instance.preferIpAddress: true
-hermione.fe.url = *
\ No newline at end of file
+hermione.fe.url = *
+ariadne.fe.url = *
\ No newline at end of file