Class RequestAttributeResource


  • @RestController
    @RequestMapping("/api")
    public class RequestAttributeResource
    extends Object
    REST controller for managing RequestAttribute.
    • Constructor Detail

    • Method Detail

      • createRequestAttribute

        @PostMapping("/request-attributes")
        public org.springframework.http.ResponseEntity<RequestAttribute> createRequestAttribute​(@Valid @RequestBody
                                                                                                @Valid RequestAttribute requestAttribute)
                                                                                         throws URISyntaxException
        POST /request-attributes : Create a new requestAttribute.
        Parameters:
        requestAttribute - the requestAttribute to create.
        Returns:
        the ResponseEntity with status 201 (Created) and with body the new requestAttribute, or with status 400 (Bad Request) if the requestAttribute has already an ID.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • updateRequestAttribute

        @PutMapping("/request-attributes")
        public org.springframework.http.ResponseEntity<RequestAttribute> updateRequestAttribute​(@Valid @RequestBody
                                                                                                @Valid RequestAttribute requestAttribute)
                                                                                         throws URISyntaxException
        PUT /request-attributes : Updates an existing requestAttribute.
        Parameters:
        requestAttribute - the requestAttribute to update.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the updated requestAttribute, or with status 400 (Bad Request) if the requestAttribute is not valid, or with status 500 (Internal Server Error) if the requestAttribute couldn't be updated.
        Throws:
        URISyntaxException - if the Location URI syntax is incorrect.
      • getAllRequestAttributes

        @GetMapping("/request-attributes")
        public List<RequestAttribute> getAllRequestAttributes()
        GET /request-attributes : get all the requestAttributes.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of requestAttributes in body.
      • getRequestAttribute

        @GetMapping("/request-attributes/{id}")
        public org.springframework.http.ResponseEntity<RequestAttribute> getRequestAttribute​(@PathVariable
                                                                                             Long id)
        GET /request-attributes/:id : get the "id" requestAttribute.
        Parameters:
        id - the id of the requestAttribute to retrieve.
        Returns:
        the ResponseEntity with status 200 (OK) and with body the requestAttribute, or with status 404 (Not Found).
      • deleteRequestAttribute

        @DeleteMapping("/request-attributes/{id}")
        public org.springframework.http.ResponseEntity<Void> deleteRequestAttribute​(@PathVariable
                                                                                    Long id)
        DELETE /request-attributes/:id : delete the "id" requestAttribute.
        Parameters:
        id - the id of the requestAttribute to delete.
        Returns:
        the ResponseEntity with status 204 (NO_CONTENT).