Class CertificateAttributeResource


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

      • createCertificateAttribute

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

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

        @GetMapping("/certificate-attributes")
        public List<CertificateAttribute> getAllCertificateAttributes()
        GET /certificate-attributes : get all the certificateAttributes.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of certificateAttributes in body.
      • getCertificateAttribute

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

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