Update dependencies and add springdoc-openapi-starter-webmvc-ui dependency

This commit is contained in:
andrea.terzani
2024-10-10 16:53:41 +02:00
parent 2f6ee54ded
commit b23521700f
3 changed files with 14 additions and 7 deletions

View File

@@ -108,7 +108,11 @@
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.8</version> <version>2.8.8</version>
</dependency> </dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.5.0</version>
</dependency>
<dependency> <dependency>
<groupId>com.olympus</groupId> <groupId>com.olympus</groupId>
<artifactId>common</artifactId> <artifactId>common</artifactId>

View File

@@ -5,6 +5,7 @@ import com.olympus.feign.SourceCodeModule;
import com.olympus.hermione.services.SourceCodeService; import com.olympus.hermione.services.SourceCodeService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@@ -13,11 +14,12 @@ import org.springframework.web.bind.annotation.RestController;
public class ApplicationBrowserController { public class ApplicationBrowserController {
@Autowired @Autowired
SourceCodeService sourceCodeService; private SourceCodeModule sourceCodeModule;
@GetMapping
public TreeNode getApplicationNode(String applicationName){ @GetMapping("/source-viewer/getApplicationTreeNode")
return sourceCodeService.getApplicationNode(applicationName); public TreeNode getApplicationNode(@RequestParam() String applicationName){
return sourceCodeModule.getTreeFromNode(applicationName,"application");
} }
} }

View File

@@ -29,3 +29,4 @@ eureka.client.serviceUrl.defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
eureka.instance.preferIpAddress: true eureka.instance.preferIpAddress: true
hermione.fe.url = * hermione.fe.url = *
ariadne.fe.url = *