Skip to content

Add PDF and JSON Download Support #553

Description

@chetanr25

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions