Class CAConnectorConfigResource


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

      • createCAConnectorConfig

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

        @Transactional
        @PutMapping("/ca-connector-configs")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<CAConnectorConfig> updateCAConnectorConfig​(@Valid @RequestBody
                                                                                                  @Valid CAConnectorConfig cAConnectorConfig)
                                                                                           throws URISyntaxException
        PUT /ca-connector-configs : Updates an existing cAConnectorConfig.
        Parameters:
        cAConnectorConfig - the cAConnectorConfig 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.
      • getCAConnectorStatus

        @GetMapping("/ca-connector-configs/status")
        @PreAuthorize("isAuthenticated()")
        public List<CAConnectorStatus> getCAConnectorStatus()
        GET /ca-connector-configs/status : get all elements able to create a certificate.
        Returns:
        list of CAStatus .
      • getAllCAConnectorConfigs

        @GetMapping("/ca-connector-configs")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<CAConnectorConfig> getAllCAConnectorConfigs()
        GET /ca-connector-configs : get all the cAConnectorConfigs.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of cAConnectorConfigs in body.
      • getCAConnectorConfig

        @GetMapping("/ca-connector-configs/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<CAConnectorConfig> getCAConnectorConfig​(@PathVariable
                                                                                               Long id)
        GET /ca-connector-configs/:id : get the "id" cAConnectorConfig.
        Parameters:
        id - the id of the cAConnectorConfig to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the cAConnectorConfig, or with status 404 (Not Found).
      • deleteCAConnectorConfig

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