Class CsrAttributeResource


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

      • CsrAttributeResource

        public CsrAttributeResource​(CsrAttributeService csrAttributeService)
    • Method Detail

      • createCsrAttribute

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

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

        @GetMapping("/csr-attributes")
        public List<CsrAttribute> getAllCsrAttributes()
        GET /csr-attributes : get all the csrAttributes.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of csrAttributes in body.
      • getCsrAttribute

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

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