Class MiaEnvironmentController
java.lang.Object
org.qubership.atp.mia.controllers.MiaEnvironmentController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnvironments(UUID projectId) Get list environments.getEnvironmentsFull(UUID projectId, UUID environmentId) Get full information about environment..getProject(UUID projectId) Get project.Get project.getSystemsForProject(UUID projectId) Get all systems for selected project.
-
Constructor Details
-
MiaEnvironmentController
-
-
Method Details
-
getProject
Get project.- Returns:
- Project from atp-environment
-
getEnvironments
@GetMapping("/environments") public List<AbstractConfiguratorModel> getEnvironments(@RequestParam("projectId") UUID projectId) Get list environments.- Returns:
- List environment from atp-environment
-
getEnvironmentsFull
@GetMapping("/environments/full") public Environment getEnvironmentsFull(@RequestParam("projectId") UUID projectId, @RequestParam("environmentId") UUID environmentId) Get full information about environment..- Returns:
- Environment or RuntimeException if environment not found
-
getSystemsForProject
@GetMapping("/environments/systems") public List<SystemEnvironmentsViewDto> getSystemsForProject(@RequestParam("projectId") UUID projectId) Get all systems for selected project.- Parameters:
projectId- of project.- Returns:
- list of systems for selected project.
-
getProjects
Get project.- Returns:
- Project from environment
-