📝 point the contract URLs at the backend door
Browse files at this commit5c869ed32eabf47c67b358b2ca748debcd43febbParent: f643e6a- docs
- 📝 point the contract URLs at the backend door
3 changed files +17 -5
- .agents/skills/check-api-contract/SKILL.md +8 -2
- .claude/skills/check-api-contract/SKILL.md +8 -2
- README.md +1 -1
.agents/skills/check-api-contract/SKILL.mdmodified+8 -2
| @@ -7,8 +7,14 @@ description: "Check Hezarfen's live Swagger/OpenAPI contract against the fronten | |||
| 7 | 7 | ||
| 8 | Treat the deployed OpenAPI document as the primary contract: | 8 | Treat the deployed OpenAPI document as the primary contract: |
| 9 | 9 | ||
| 10 | -- Swagger UI: `https://hezarfen.dizey.sh/swagger/` | 10 | +- Swagger UI: `https://hezarfen-backend.dizey.sh/swagger/` |
| 11 | -- OpenAPI JSON: `https://hezarfen.dizey.sh/api-docs/openapi.json` | 11 | +- OpenAPI JSON: `https://hezarfen-backend.dizey.sh/api-docs/openapi.json` |
| 12 | + | ||
| 13 | +`hezarfen.dizey.sh` is the FRONTEND (it serves the SPA and proxies only | ||
| 14 | +`/api/*` to the backend), so `/swagger/` and `/api-docs/` there return the SPA | ||
| 15 | +shell, not the contract. The `hezarfen-backend.dizey.sh` door is a temporary | ||
| 16 | +development exposure of the backend (Ferron -> 127.0.0.1:7656) and will be | ||
| 17 | +hidden later; ask Burak for the current door if it stops answering. | ||
| 12 | 18 | ||
| 13 | Fetch the machine-readable document directly with `curl -fsSL` and use `jq` | 19 | Fetch the machine-readable document directly with `curl -fsSL` and use `jq` |
| 14 | to keep output focused. Do not clone or inspect the private backend repository | 20 | to keep output focused. Do not clone or inspect the private backend repository |
.claude/skills/check-api-contract/SKILL.mdmodified+8 -2
| @@ -7,8 +7,14 @@ description: "Check Hezarfen's live Swagger/OpenAPI contract against the fronten | |||
| 7 | 7 | ||
| 8 | Treat the deployed OpenAPI document as the primary contract: | 8 | Treat the deployed OpenAPI document as the primary contract: |
| 9 | 9 | ||
| 10 | -- Swagger UI: `https://hezarfen.dizey.sh/swagger/` | 10 | +- Swagger UI: `https://hezarfen-backend.dizey.sh/swagger/` |
| 11 | -- OpenAPI JSON: `https://hezarfen.dizey.sh/api-docs/openapi.json` | 11 | +- OpenAPI JSON: `https://hezarfen-backend.dizey.sh/api-docs/openapi.json` |
| 12 | + | ||
| 13 | +`hezarfen.dizey.sh` is the FRONTEND (it serves the SPA and proxies only | ||
| 14 | +`/api/*` to the backend), so `/swagger/` and `/api-docs/` there return the SPA | ||
| 15 | +shell, not the contract. The `hezarfen-backend.dizey.sh` door is a temporary | ||
| 16 | +development exposure of the backend (Ferron -> 127.0.0.1:7656) and will be | ||
| 17 | +hidden later; ask Burak for the current door if it stops answering. | ||
| 12 | 18 | ||
| 13 | Fetch the machine-readable document directly with `curl -fsSL` and use `jq` | 19 | Fetch the machine-readable document directly with `curl -fsSL` and use `jq` |
| 14 | to keep output focused. Do not clone or inspect the private backend repository | 20 | to keep output focused. Do not clone or inspect the private backend repository |
README.mdmodified+1 -1
| @@ -31,7 +31,7 @@ A modern, high-performance **SolidJS + TypeScript** web application for the Heza | |||
| 31 | ## 📦 Prerequisites & Setup | 31 | ## 📦 Prerequisites & Setup |
| 32 | 32 | ||
| 33 | - **Node.js** 20+ or **bun** (recommended) | 33 | - **Node.js** 20+ or **bun** (recommended) |
| 34 | -- Access to the Hezarfen backend at `https://hezarfen.dizey.sh` | 34 | +- A Hezarfen backend to talk to — the deployed frontend proxies `/api/*` to it, so `https://hezarfen.dizey.sh` is enough in a browser; for a direct backend (dev) door use `https://hezarfen-backend.dizey.sh`, or `BACKEND_ORIGIN=http://127.0.0.1:7656` against a backend on the same machine |
| 35 | 35 | ||
| 36 | ### Installation & Development | 36 | ### Installation & Development |
| 37 | 37 | ||