Class RequestProxyConfigAdministration


  • @RestController
    @RequestMapping("/api")
    public class RequestProxyConfigAdministration
    extends Object
    REST controller for processing PKCS10 requests and Certificates.
    • Method Detail

      • createRequestProxyConfig

        @PostMapping("/request-proxy-config")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        @Transactional
        public org.springframework.http.ResponseEntity<Void> createRequestProxyConfig​(@Valid @RequestBody
                                                                                      @Valid RequestProxyConfigView requestProxyConfigView)
                                                                               throws URISyntaxException
        POST /request-proxy-config : Create a new requestProxyConfig.
        Parameters:
        requestProxyConfigView - the requestProxyConfig to create.
        Returns:
        Void with status 201 (Created) and with body the new requestProxyConfig, or with status 400 (Bad Request) if the requestProxyConfig has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updateRequestProxyConfigView

        @PutMapping("/request-proxy-config")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        @Transactional
        public org.springframework.http.ResponseEntity<Void> updateRequestProxyConfigView​(@Valid @RequestBody
                                                                                          @Valid RequestProxyConfigView requestProxyConfigView)
                                                                                   throws URISyntaxException
        PUT /request-proxy-config : Updates an existing requestProxyConfig.
        Parameters:
        requestProxyConfigView - the requestProxyConfig to update.
        Returns:
        Void with status 200 (OK) and with body the updated requestProxyConfig, or with status 400 (Bad Request) if the requestProxyConfig is not valid, or with status 500 (Internal Server Error) if the requestProxyConfig couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllRequestProxyConfig

        @GetMapping("/request-proxy-config")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public List<RequestProxyConfigView> getAllRequestProxyConfig()
        GET /request-proxy-config : get all the requestProxyConfig.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of requestProxyConfigViews in body.
      • getRequestProxyConfig

        @GetMapping("/request-proxy-config/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<RequestProxyConfigView> getRequestProxyConfig​(@PathVariable
                                                                                                     Long id)
        GET /request-proxy-config/:id : get the "id" requestProxyConfig.
        Parameters:
        id - the id of the requestProxyConfig to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the requestProxyConfigView, or with status 404 (Not Found).