Skip to content

feat: REST v1 (OpenAPI 3.1) + models index + ML inference proxy - #1

Merged
ronaldtse merged 1 commit into
mainfrom
feat/rest-openapi-v1
Aug 23, 2026
Merged

feat: REST v1 (OpenAPI 3.1) + models index + ML inference proxy#1
ronaldtse merged 1 commit into
mainfrom
feat/rest-openapi-v1

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

REST v1 — the OpenAPI-first interface

Serves alongside GraphQL (unchanged, POST /graphql):

  • GET /openapi.json — OpenAPI 3.1 document
  • GET / — service index; GET /v1/info — version/capabilities
  • GET /v1/maps, GET /v1/maps/{code} — all 287 bundled systems + compiled map JSON
  • POST /v1/transliterate — same engine, same limits, same error strings as GraphQL
  • POST /v1/detect — ranked system detection
  • GET /v1/models, GET /v1/models/{id} — the neural model index (IMF v1), generated from interscript-ml's models.yaml (npm run gen:models)
  • POST /v1/infer{model, input}{output}; proxies to the Modal inference service (ML_ENDPOINT/ML_TOKEN env), which runs the same parity-verified ONNX decode that gates every release

18/18 tests green (GraphQL fixtures unaffected). Version → 1.0.0.

@ronaldtse
ronaldtse merged commit a0916fc into main Aug 23, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant