Bufdir Report API Endpoint
Component Detail
Infrastructure
medium complexity
backend
1
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
REST API route handler exposing report generation and preview endpoints under /api/v1/reports/bufdir. Enforces organization-scoped JWT authorization so coordinators and org admins can only access their own organization's data.
bufdir-report-api-endpoint
Responsibilities
- Expose POST /api/v1/reports/bufdir/generate and GET /api/v1/reports/bufdir/preview endpoints
- Validate JWT claims and extract organization context before delegating to Report Generator Service
- Return structured HTTP responses with appropriate status codes and error payloads
- Rate-limit report generation to prevent accidental duplicate submissions
Interfaces
POST /api/v1/reports/bufdir/generate
GET /api/v1/reports/bufdir/preview
GET /api/v1/reports/bufdir/periods
GET /api/v1/reports/bufdir/:reportId
Relationships
Related Data Entities (2)
Data entities managed by this component