HTTP API contracts for the Open Insurance platform.
| Surface | Location |
|---|---|
| REST (public, via Kong) | openapi.yaml |
| gRPC (internal / future) | ../../proto/ |
| Gateway routing | ../../gateway/kong/ |
Document gateway paths (/identity/..., /application/...) in OpenAPI — not internal Docker hostnames.
make api-docsOpens an interactive reference at http://localhost:8089 (Redocly). Requires Node.js/npx or Docker.
Validate the spec without starting a server:
make api-lint- Update
openapi.yamlwhen adding or changing HTTP endpoints. - Run
make api-lintbefore opening a PR. - Keep request/response shapes aligned with Go handlers under
services/*/.
POST /identity/auth/login returns a Bearer JWT. Configure signing via JWT_SECRET, JWT_ISSUER, and JWT_ACCESS_TTL in .env.
Seed a dev user:
make seed-user