Overview
The REP (Reports) service generates PDF reports and documents for the HERCULES SGI system:- CSP Reports - Grant calls, applications, and project reports
- ETI Reports - Ethics committee reports and certificates
- PRC Reports - Scientific production reports
/report
Authentication
All endpoints require JWT authentication with appropriate module permissions.CSP Reports
Base path:/report/csp
Authorization Report for External Projects
Authorization identifier
Language code (e.g.,
es, en, gl, eu). Defaults to Spanish if not specified.CSP-AUT-E, CSP-AUT-B, CSP-AUT-INV-C, CSP-AUT-INV-ER, CSP-AUT-INV-BR
Response:
- Content-Type:
application/pdf - Body: PDF document binary
Convocatoria Reports
Additional CSP report endpoints for convocatorias, solicitudes, and proyectos will be documented as they are implemented. The service architecture supports report generation for all CSP entities.
ETI Reports
Base path:/report/eti
ETI report endpoints for committee reports, actas, and evaluaciones will be available through this service. Reports include certificates, evaluation forms, and meeting minutes.
PRC Reports
Base path:/report/prc
PRC report endpoints for scientific production summaries and researcher CVs will be available through this service.
Report Features
Supported Output Formats
Currently, the service generates reports in:- PDF (primary format)
- Excel (XLSX)
- Word (DOCX)
- CSV
Language Support
Reports support multiple languages through thel query parameter:
Language code:
es- Spanish (Castellano)en- Englishgl- Galicianeu- Basque
Report Templates
Reports are generated using JasperReports templates with:- Dynamic data from the database
- Internationalized text
- Custom formatting and branding
- Digital signatures (where applicable)
Usage Patterns
Downloading a Report
Opening Report in New Window
Error Responses
Report Not Found
404
Not Found
The requested authorization does not exist
Insufficient Permissions
403
Forbidden
User does not have permission to access this report
Report Generation Error
500
Internal Server Error
Error generating report
Performance Considerations
Report generation is synchronous and may take several seconds for complex reports with large datasets. Consider:
- Implementing client-side loading indicators
- Setting appropriate timeout values
- Caching frequently accessed reports
- Using pagination for large datasets where applicable
Security
- All report endpoints require authentication
- Access control is enforced based on user permissions
- Users can only generate reports for entities they have access to
- Sensitive data is redacted based on user role