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>
<version>2.8.8</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.5.0</version>
</dependency>
<dependency>
<groupId>com.olympus</groupId>
<artifactId>common</artifactId>

View File

@@ -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");
}
}

View File

@@ -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 = *
hermione.fe.url = *
ariadne.fe.url = *