Class CertificateListResource


  • @RestController
    @RequestMapping("/publicapi")
    public class CertificateListResource
    extends Object
    REST controller for managing Certificate.
    • Field Detail

      • TEXT_CSV_TYPE

        public static final org.springframework.http.MediaType TEXT_CSV_TYPE
    • Constructor Detail

      • CertificateListResource

        public CertificateListResource​(CertificateViewRepository certificateViewRepository,
                                       @Value("${ca3s.ui.download.rows.max:1000}")
                                       int maxCSVRows)
    • Method Detail

      • getAllCertificates

        @GetMapping("/certificateList")
        @Transactional
        public org.springframework.http.ResponseEntity<List<CertificateView>> getAllCertificates​(org.springframework.data.domain.Pageable pageable,
                                                                                                 javax.servlet.http.HttpServletRequest request)
        GET /certificates : get all the certificates.
        Parameters:
        pageable - the pagination information.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of certificates in body.
      • getAllCertificatesAsCSV

        @GetMapping("/certificateListCSV")
        @Transactional
        public org.springframework.http.ResponseEntity<String> getAllCertificatesAsCSV​(org.springframework.data.domain.Pageable pageable,
                                                                                       javax.servlet.http.HttpServletRequest request)
        GET /certificates : get all the certificates.
        Parameters:
        pageable - the pagination information.
        Returns:
        the ResponseEntity with status 200 (OK) and the list of certificates in body.