Update dependencies and add springdoc-openapi-starter-webmvc-ui dependency
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -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>
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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 = *
|
||||
Reference in New Issue
Block a user