Class RequestProxyConfigResource


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

      • createRequestProxyConfig

        @PostMapping("/request-proxy-configs")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        @Transactional
        public org.springframework.http.ResponseEntity<RequestProxyConfig> createRequestProxyConfig​(@Valid @RequestBody
                                                                                                    @Valid RequestProxyConfig requestProxyConfig)
                                                                                             throws URISyntaxException
        POST /request-proxy-configs : Create a new requestProxyConfig.
        Parameters:
        requestProxyConfig - the requestProxyConfig to create.
        Returns:
        the ResponseEntity 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.
      • updateRequestProxyConfig

        @PutMapping("/request-proxy-configs")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        @Transactional
        public org.springframework.http.ResponseEntity<RequestProxyConfig> updateRequestProxyConfig​(@Valid @RequestBody
                                                                                                    @Valid RequestProxyConfig requestProxyConfig)
                                                                                             throws URISyntaxException
        PUT /request-proxy-configs : Updates an existing requestProxyConfig.
        Parameters:
        requestProxyConfig - the requestProxyConfig to update.
        Returns:
        the ResponseEntity 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.
      • getAllRequestProxyConfigs

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

        @GetMapping("/request-proxy-configs/{id}")
        @PreAuthorize("hasRole(\"ROLE_ADMIN\")")
        public org.springframework.http.ResponseEntity<RequestProxyConfig> getRequestProxyConfig​(@PathVariable
                                                                                                 Long id)
        GET /request-proxy-configs/: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 requestProxyConfig, or with status 404 (Not Found).
      • postRequestProxyConfig

        @PostMapping("/request-proxy-configs/remote-config/{requestProxyId}")
        @Transactional
        public org.springframework.http.ResponseEntity<RemoteRequestProxyConfigView> postRequestProxyConfig​(@Valid @RequestBody
                                                                                                            @Valid String body,
                                                                                                            @RequestHeader(value="Accept",required=false)
                                                                                                            String accept,
                                                                                                            @PathVariable
                                                                                                            Long requestProxyId)
        GET /request-proxy-configs/remote-config/:id : get the "id" requestProxyConfig.
        Parameters:
        requestProxyId - the id of the requestProxyConfig to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the requestProxyConfig, or with status 404 (Not Found).
      • deleteRequestProxyConfig

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