Skip to content

Add health response uptime and ISO timestamp metadata #32

Description

@emrekayat

Goal

Make the public health endpoint more useful for operators and demos by returning basic runtime metadata.

Scope

  • Update the API health response to include an ISO timestamp and process uptime seconds.
  • Keep existing health fields and status behavior unchanged.
  • Avoid exposing secrets, environment variables, wallet addresses, or host internals.
  • Update the focused public route test.

Acceptance criteria

  • GET /health includes timestamp as a valid ISO string.
  • GET /health includes uptimeSeconds as a non-negative number.
  • Existing health metadata still appears.
  • npm test --workspace @query402/api -- src/routes/public.test.ts passes.
  • npm run typecheck --workspace @query402/api passes.

Notes

This should be a small API-only change with one focused test update.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssue proposed for the Drips Stellar Wave programarea: apiAPI servicecomplexity: highExpected high implementation complexitydrips-candidateCandidate for a Drips Stellar WaveenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions