Class ConnectionController

java.lang.Object
org.qubership.atp.environments.service.rest.server.ConnectionController

@RequestMapping("/api/connections") @RestController public class ConnectionController extends Object
  • Constructor Details

  • Method Details

    • getConnectionsAll

      @GetMapping public List<Connection> getConnectionsAll()
    • getConnectionsAllBy

      @PostMapping("/getAllBy") public List<Connection> getConnectionsAllBy(@RequestBody ConnectionByCategoryDto connectionByCategory)
    • getConnection

      @GetMapping("/{connectionId}") public Connection getConnection(@PathVariable("connectionId") UUID id)
    • createConnection

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),#connection.getProjectId(),\'CREATE\')") @PostMapping public Connection createConnection(@RequestBody ConnectionDto connection)
      TODO Make javadoc documentation for this method.
    • updateConnection

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),#connectionDto.getProjectId(),\'UPDATE\')") @PutMapping public org.springframework.http.ResponseEntity<Connection> updateConnection(@RequestBody ConnectionDto connectionDto)
      TODO Make javadoc documentation for this method.
    • updateParameters

      @PutMapping("/parameters") public List<Connection> updateParameters(@RequestBody List<ConnectionDto> connections)
      TODO Make javadoc documentation for this method.
    • deleteConnection

      @PreAuthorize("@entityAccess.checkAccess(T(org.qubership.atp.environments.enums.UserManagementEntities).CONNECTION.getName(),@connectionService.getProjectId(#id),\'DELETE\')") @DeleteMapping("/{connectionId}") @ResponseStatus(NO_CONTENT) public void deleteConnection(@PathVariable("connectionId") UUID id)
    • getConnectionTemplates

      @GetMapping("/templates") public List<Connection> getConnectionTemplates()
    • getConnectionTemplatesShort

      @GetMapping("/templates/short") public List<Connection> getConnectionTemplatesShort()