Class CAConnectorConfigViewResource


  • @RestController
    @Transactional
    @RequestMapping("/api")
    public class CAConnectorConfigViewResource
    extends Object
    REST controller for managing Pipeline.
    • Method Detail

      • createPipeline

        @PostMapping("/ca-connector-configViews")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<CaConnectorConfigView> createPipeline​(@Valid @RequestBody
                                                                                             @Valid CaConnectorConfigView caConnectorConfigView)
                                                                                      throws URISyntaxException
        POST /pipelineViews : Create a new CAConnectorConfig.
        Parameters:
        caConnectorConfigView - the CaConnectorConfigView to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new pipeline, or with status 400 (Bad Request) if the pipeline has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updatePipeline

        @PutMapping("/ca-connector-configViews")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<CaConnectorConfigView> updatePipeline​(@Valid @RequestBody
                                                                                             @Valid CaConnectorConfigView caConnectorConfigView)
                                                                                      throws URISyntaxException
        PUT /ca-connector-configViews : Updates an existing CaConnectorConfig.
        Parameters:
        caConnectorConfigView - the pipeline to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated CaConnectorConfig, or with status 400 (Bad Request) if the CaConnectorConfig is not valid, or with status 500 (Internal Server Error) if the CaConnectorConfig couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllCaConnectorConfigs

        @GetMapping("/ca-connector-configViews")
        public List<CaConnectorConfigView> getAllCaConnectorConfigs()
        GET /ca-connector-configViews : get all the CaConnectorConfigs.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of CaConnectorConfigViews in body.
      • getCaConnectorConfig

        @GetMapping("/ca-connector-configViews/{id}")
        public org.springframework.http.ResponseEntity<CaConnectorConfigView> getCaConnectorConfig​(@PathVariable
                                                                                                   Long id)
        GET /ca-connector-configViews/:id : get the "id" CaConnectorConfigView.
        Parameters:
        id - the id of the CaConnectorConfigView to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the pipeline, or with status 404 (Not Found).
      • deleteCaConnectorConfig

        @DeleteMapping("/ca-connector-configViews/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<Void> deleteCaConnectorConfig​(@PathVariable
                                                                                     Long id)
        DELETE /ca-connector-configViews/:id : delete the "id" CaConnectorConfigView.
        Parameters:
        id - the id of the CaConnectorConfig to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).
      • getADCSTemplates

        @PostMapping("/ca-connector-configViews/adcs/templates")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<ADCSInstanceDetailsView> getADCSTemplates​(@Valid @RequestBody
                                                                                                 @Valid CaConnectorConfigView caConnectorConfigView)
        GET /ca-connector-configViews/adcs/templates : get all the cAConnectorConfigs.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of cAConnectorConfigs in body.