OpenAPI Specification
The complete OpenAPI 3.1 specification for the Neemias API is available in JSON format. It is automatically generated from source code (Worker routes and Zod schemas) and covers all 25 endpoints and 29 API schemas.
Viewing the specification
- openapi.json — complete OpenAPI 3.1 specification JSON file
- Swagger Editor — load the
openapi.jsonfile in Swagger Editor for interactive visualization
Regenerating the spec
bash
pnpm docs:openapiThe generation script:
- Reads
workers/src/router.tsand extracts all 25 routes - Validates that each route has a registry entry (
scripts/openapi-registry.ts) - Converts Zod schemas to JSON Schema via
zod-to-json-schema - Writes
docs/reference/api/openapi.jsonanddocs/public/reference/api/openapi.json
If a new route is not documented in the registry, the build fails (pnpm docs:build).
API Information
- Base URL (production):
https://api.neemias.app/api/v1 - Base URL (local):
http://localhost:8788/api/v1 - Authentication: Bearer token JWT (HS256) obtained via
POST /auth/login - Format: JSON
Source: docs/reference/api/openapi.json