Status: [LIVE] Endpoints found: https://portfolio-backend-2huw.onrender.com/api/docs/ https://portfolio-backend-2huw.onrender.com/api/schema/ Source: https://github.com/SouhaibBenFarhat/portfolio-backend # portfolio-backend Django API powering the backend of [souhaibbenfarhat.github.io](https://souhaibbenfarhat.github.io). The portfolio frontend is a static Astro site on GitHub Pages, which can't run server code. This service is that server side — deployed separately and called over HTTPS. First iteration ships two things: 1. **Health/service endpoints** — a deployable, monitored running server. 2. **A first-party PostHog reverse proxy** — so analytics survives ad-blockers. Next iterations will add the AI assistant chat (LLM-backed, streamed over SSE). ## Architecture ``` Browser ──► Astro site (GitHub Pages, static) │ └──► portfolio-backend (Django on Render) ├── /health liveness └── /ingest/* ──► PostHog EU (first-party analytics proxy) ``` ## Endpoints | Method | Path | Purpose | | ------ | ----------------- | -------------------------------------------------------------- | | GET | `/` | Service descriptor (JSON) | | GET | `/health` | Liveness probe (`{"status":"ok"}`), used by Render | | GET | `/api/docs/` | Swagger UI — interactive API documentation | | GET | `/api/schema/` | OpenAPI 3 schema (the contract; feeds frontend type generation)| | POST | `/chat/stream` | Streaming AI chat (Server-Sent Events) | | GET | `/chat/conversations//` | Restore a stored conversation | | PUT | `/chat/conversations//messages//rating/` | Rate a message (thumbs up/down) | | ANY | `/ingest/` | Reverse proxy to PostHog (see below) | ## API documentation (OpenAPI / Swagger) The JSON endpoints are Django REST Framework views; [drf-spectacular](https://drf-spectacular.readthedocs.io/) introspects them