fetch_ml/cmd/api-server
Jeremie Fraeys abd27bf0a2
refactor(go): Update Go commands and TUI controller
Update api-server and gen-keys main files

Update TUI controller commands, helpers, and settings
2026-02-23 14:13:14 -05:00
..
main.go refactor(go): Update Go commands and TUI controller 2026-02-23 14:13:14 -05:00
README.md feat(api): refactor websocket handlers; add health and prometheus middleware 2026-01-05 12:31:07 -05:00

API Server

WebSocket API server for the ML CLI tool...

Usage

./bin/api-server --config configs/api/dev.yaml

Endpoints

  • GET /health - Health check
  • WS /ws - WebSocket endpoint for CLI communication

Binary Protocol

See CLI README for protocol details.

Configuration

Uses the same configuration file as the worker. Experiment base path is read from base_path configuration key.

Example

# Start API server
./bin/api-server --listen :9100

# In another terminal, test with CLI
./cli/zig-out/bin/ml status