feat/1-v1-url-shortener
master
/api/links/
GET /<code>
short_url
PUBLIC_SHORT_URL
/debug/
API.md
Closes #1. Infra follow-up: server-infra#22.
cd site && uv run python manage.py test
docker compose up --build
POST /api/links/
Bearer monica:dev-only-token
DEBUG=true
Standalone Django service so callers can mint links and phones get a 302. Closes #1.
No dependencies set.
The note is not visible to the blocked user.
Summary
/api/links/(create/list/detail/disable) and publicGET /<code>302short_urlfromPUBLIC_SHORT_URL/debug/mint form, Django adminAPI.mdCloses #1. Infra follow-up: server-infra#22.
Test plan
cd site && uv run python manage.py testdocker compose up --build→ http://127.0.0.1:8005/POST /api/links/withBearer monica:dev-only-token→ 201GET /<code>→ 302 to allowlisted https URL/debug/only whenDEBUG=true