Class ReportController
java.lang.Object
com.nmontytskyi.monitoring.server.controller.ReportController
REST controller that triggers PDF report generation and serves the resulting files
as downloadable HTTP responses.
Delegates report generation to
PdfReportService and streams the
resulting PDF bytes with Content-Disposition: attachment. Also exposes an
endpoint for retrieving the report generation history of a service.
- Author:
- Nazar Montytskyi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<byte[]> fullReport(Long serviceId, LocalDate from, LocalDate to) org.springframework.http.ResponseEntity<byte[]> org.springframework.http.ResponseEntity<byte[]> systemReport(LocalDate from, LocalDate to)
-
Constructor Details
-
ReportController
public ReportController()
-
-
Method Details
-
slaReport
-
fullReport
-
systemReport
-
history
@GetMapping("/{serviceId}/history") public List<ReportHistoryResponse> history(@PathVariable Long serviceId)
-