Pharma Commercial Mock
GET/api/health

Health + route discovery

Service health + discovery of every available endpoint.

Returns service status and the canonical list of public endpoints. An ingestor can call this once at startup to discover what's available without needing to know paths upfront.

Response schema

PathTypeDescription
statusstring
Always 'ok' when the service is reachable.
endpointsstring[]
Sorted list of every public API path. Excludes Next.js internals.

Behaviour notes

  • ·Routes are derived from the manifest (src/lib/manifest.ts), not from filesystem scan, so the frontend and /health stay aligned.

Examples

Discovery
curl 'http://localhost:3000/api/health'