Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.32 KB

File metadata and controls

26 lines (17 loc) · 1.32 KB

API documentation

The HTTP API (versioning, envelopes, and endpoint overview) lives in the repository root:

API.md

Contract error codes

When the backend invokes the on-chain Soroban contract, failures surface as numeric error codes. The canonical mapping between contract error codes and HTTP API error responses is maintained in:

CONTRACT_ABI.md → Canonical Error Mapping

Operational endpoints

These unversioned endpoints support health checks and monitoring:

Endpoint Purpose
GET /health Plain-text 200 ok liveness probe for load balancers.
GET /api/health JSON { status, timestamp } API health.
GET /ready, GET /readiness Deep readiness probe (DB, Redis/queues, workers, indexer); returns 503 until ready.
GET /metrics Prometheus metrics exposition.

To probe these surfaces across environments, use the health smoke script (npm run smoke). See OPERATIONS.md for usage and the health-vs-readiness distinction.