From b23521700f3a57d7fc95cf5f2f0aa7012bd8bcc8 Mon Sep 17 00:00:00 2001 From: "andrea.terzani" Date: Thu, 10 Oct 2024 16:53:41 +0200 Subject: [PATCH] Update dependencies and add springdoc-openapi-starter-webmvc-ui dependency --- pom.xml | 6 +++++- .../controllers/ApplicationBrowserController.java | 12 +++++++----- src/main/resources/application.properties | 3 ++- 3 files changed, 14 insertions(+), 7 deletions(-) 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