mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
gui, mig and the portfolio read core's role data and translations from one place instead of cloning core themselves. web-svc-api serves them at api.<domain> as a FastAPI service. The container keeps a bare git mirror of core and, with forks: auto, of every fork the GitHub forks API lists, fetched every fetch_interval seconds under a file lock. The deployed working tree is committed as the ref `deployed` from a snapshot baked into the image with fixed dates, so every replica commits the same SHA. A ref is `deployed`, a SHA or prefix, a branch or tag, or `owner:name` for a fork. Endpoints: /v1/repositories, /v1/log, /v1/roles, /v1/roles/<role>, /v1/categories, /v1/bundles, /v1/tree, /v1/file, /v1/todos, /v1/languages and /v1/catalogs/core/<code>. Descriptions and category titles follow `lang` or Accept-Language and the response names the language it used. Every response carries Access-Control-Allow-Origin: *, an invalid ref or path is a 400 and an unknown one a 404. A role that enables services.api gets the API origin in its connect-src. The Playwright spec covers every endpoint against the live stack. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.