PDF + JSON download
Part of #541
Depends on: Single form generation (#552 )
Contract reference
Endpoints
GET /api/v1/forms/{form_id}/pdf
Returns the filled PDF binary with Content-Disposition header for browser download. If form generation is still in progress, returns 202 with retry_after_seconds.
GET /api/v1/forms/{form_id}/json
Returns the form-specific JSON with fields mapped to the agency's expected format. This is not the FireForm incident contract but the actual field names and structure the target agency system expects. Useful for future direct API submission to agency systems.
PDF + JSON download
Part of #541
Depends on: Single form generation (#552 )
Contract reference
path/forms.yaml#L192-L258(PDF download)path/forms.yaml#L259-L302(JSON download)schemas/form-record.yaml#FormMappedJsonEndpoints
GET /api/v1/forms/{form_id}/pdfReturns the filled PDF binary with
Content-Dispositionheader for browser download. If form generation is still in progress, returns202withretry_after_seconds.GET /api/v1/forms/{form_id}/jsonReturns the form-specific JSON with fields mapped to the agency's expected format. This is not the FireForm incident contract but the actual field names and structure the target agency system expects. Useful for future direct API submission to agency systems.