Files
stack/tests/conf
kert b45c1a9b74 add FastAPI app with JWT auth, [api] config section, stack api serve refs #3 refs #4
New [api] section in stack.toml (host, port, secret, workers) with
env var override via STACK_API_SECRET.  conf.secret() resolves
env var > config file for sensitive values.

FastAPI endpoints:
  POST /auth/token — issue JWT from configured secret
  GET  /health — service status
  GET  /pipelines — list pipelines with step counts
  GET  /pipelines/{name} — pipeline detail
  POST /pipelines/run/{pipeline} — trigger run (auth required)
  GET  /pipelines/run/{job_id}/status — poll job status
  GET  /bib/items — query bibliography
  GET  /bib/tags — tag namespace counts
  GET  /schema/{table} — JSON Schema from SQLTable models

CLI: stack api serve [--host] [--port] [--workers] [--reload]
12 new API tests, 6 new conf tests.
2026-03-12 14:59:30 -04:00
..