Package de.trustable.ca3s.core.web.rest
Class CSRListResource
- java.lang.Object
-
- de.trustable.ca3s.core.web.rest.CSRListResource
-
-
Constructor Summary
Constructors Constructor Description CSRListResource(CSRViewRepository csrViewRepository, PipelineAttributeRepository pipelineAttributeRepository, UserUtil userUtil, int maxCSVRows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>getAllCsrAsCSV(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the CSRs.org.springframework.http.ResponseEntity<List<CSRView>>getAllCsrs(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /csrList: get all the csrs.
-
-
-
Constructor Detail
-
CSRListResource
public CSRListResource(CSRViewRepository csrViewRepository, PipelineAttributeRepository pipelineAttributeRepository, UserUtil userUtil, @Value("${ca3s.ui.download.rows.max:1000}") int maxCSVRows)
-
-
Method Detail
-
getAllCsrs
@GetMapping("/csrList") public org.springframework.http.ResponseEntity<List<CSRView>> getAllCsrs(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /csrList: get all the csrs.- Parameters:
pageable- the pagination information.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of certificates in body.
-
getAllCsrAsCSV
@GetMapping("/csrListCSV") public org.springframework.http.ResponseEntity<String> getAllCsrAsCSV(org.springframework.data.domain.Pageable pageable, javax.servlet.http.HttpServletRequest request)GET /certificates: get all the CSRs.- Parameters:
pageable- the pagination information.- Returns:
- the
ResponseEntitywith status200 (OK)and the list of certificates in body.
-
-