OpenAPI 3.1 descriptions of the HTTP APIs, one per service.
| File | Service | Default port (docker-compose) |
|---|---|---|
api-server.yaml |
API server: REST API and the /eth JSON-RPC endpoint |
8081 |
indexer.yaml |
Indexer private read API | 8082 |
relayer.yaml |
Relayer status API | 8080 |
Some API server routes are mounted only when configured:
| Routes | Mounted when |
|---|---|
/auth/* and /.well-known/jwks.json |
The auth block is set |
/admin/* |
admin.enabled is set |
/eth |
eth_rpc.enabled is set |
The authentication model is described in ../SECURITY_AND_PRIVACY_MODEL.md.
npx @redocly/cli lint --config docs/openapi/redocly.yaml \
docs/openapi/api-server.yaml docs/openapi/indexer.yaml docs/openapi/relayer.yamlnpx @redocly/cli preview-docs docs/openapi/api-server.yamlRoutes are registered in these handler files:
pkg/user/service/http.gopkg/transfer/http.gopkg/auth/service/http.gopkg/token/http.gopkg/user/whitelist/http.gopkg/registry/handler.gopkg/ethrpc/service/http.gopkg/indexer/service/http.gopkg/relayer/service/http.go
Update the matching spec in the same change as any route or payload edit.