Skip to content

Report routes and registration

View as Markdown

Project shared contracts, TsRestApi, and report types from Sapporta shared/frontend packages.

  • Report routes are ordinary app-owned ts-rest routes mounted under /api.
  • GET query contracts support compact URL-backed filters; POST bodies support larger nested input.
  • Date ranges use Temporal-compatible shared helpers.
  • Handlers resolve auth and input, call a scoped read, map a dataset, and return a declared response.
  • OpenAPI includes a report only after route registration and mounting.