Class MiaEnvironmentController

java.lang.Object
org.qubership.atp.mia.controllers.MiaEnvironmentController

@RequestMapping("/rest") @RestController public class MiaEnvironmentController extends Object
  • Constructor Details

  • Method Details

    • getProject

      @GetMapping("/project") public Project getProject(@RequestParam("projectId") UUID projectId)
      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

      @GetMapping("/projects") public List<AbstractConfiguratorModel> getProjects()
      Get project.
      Returns:
      Project from environment