Package de.trustable.ca3s.core.web.rest
Class CertificateViewResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.CertificateViewResource
-
@RestController @RequestMapping("/api") public class CertificateViewResource extends ObjectREST controller for readingCertificateusing the convenient CertificateView object. Just read-only access to this resource.
-
-
Constructor Summary
Constructors Constructor Description CertificateViewResource(CertificateService certificateService, AuditTraceRepository auditTraceRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<CertificateView>getCertificate(Long id)GET /certificates/:id: get the "id" certificate.
-
-
-
Constructor Detail
-
CertificateViewResource
public CertificateViewResource(CertificateService certificateService, AuditTraceRepository auditTraceRepository)
-
-
Method Detail
-
getCertificate
@GetMapping("/certificateViews/{id}") public org.springframework.http.ResponseEntity<CertificateView> getCertificate(@PathVariable Long id)GET /certificates/:id: get the "id" certificate.- Parameters:
id- the id of the certificate to retrieve.- Returns:
- the
ResponseEntitywith status200 (OK)and with body the certificate, or with status404 (Not Found).
-
-