Package de.trustable.ca3s.core.web.rest
Class CertificateAttributeResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.CertificateAttributeResource
-
@RestController @RequestMapping("/api") @Transactional public class CertificateAttributeResource extends ObjectREST controller for managingCertificateAttribute.
-
-
Constructor Summary
Constructors Constructor Description CertificateAttributeResource(CertificateAttributeRepository certificateAttributeRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<CertificateAttribute>createCertificateAttribute(@Valid CertificateAttribute certificateAttribute)POST /certificate-attributes: Create a new certificateAttribute.org.springframework.http.ResponseEntity<Void>deleteCertificateAttribute(Long id)DELETE /certificate-attributes/:id: delete the "id" certificateAttribute.List<CertificateAttribute>getAllCertificateAttributes()GET /certificate-attributes: get all the certificateAttributes.org.springframework.http.ResponseEntity<CertificateAttribute>getCertificateAttribute(Long id)GET /certificate-attributes/:id: get the "id" certificateAttribute.org.springframework.http.ResponseEntity<CertificateAttribute>updateCertificateAttribute(@Valid CertificateAttribute certificateAttribute)PUT /certificate-attributes: Updates an existing certificateAttribute.
-
-
-
Constructor Detail
-
CertificateAttributeResource
public CertificateAttributeResource(CertificateAttributeRepository certificateAttributeRepository)
-
-
Method Detail
-
createCertificateAttribute
@PostMapping("/certificate-attributes") public org.springframework.http.ResponseEntity<CertificateAttribute> createCertificateAttribute(@Valid @RequestBody @Valid CertificateAttribute certificateAttribute) throws URISyntaxExceptionPOST /certificate-attributes: Create a new certificateAttribute.- Parameters:
certificateAttribute- the certificateAttribute to create.- Returns:
- the
ResponseEntitywith status201 (Created)and with body the new certificateAttribute, or with status400 (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 URISyntaxExceptionPUT /certificate-attributes: Updates an existing certificateAttribute.- Parameters:
certificateAttribute- the certificateAttribute to update.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the updated certificateAttribute, or with status400 (Bad Request)if the certificateAttribute is not valid, or with status500 (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
ResponseEntitywith status200 (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
ResponseEntitywith status200 (OK)and with body the certificateAttribute, or with status404 (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
ResponseEntitywith status204 (NO_CONTENT).
-
-