This folder contains a minimal FastAPI backend that exposes a stubbed query-to-facets endpoint for experimentation and PoC work.
- Python 3.9+
pip
From the repo root:
python -m venv backend/.venv
source backend/.venv/bin/activate
python -m pip install --upgrade pipFrom the repo root:
pip install -r backend/requirements.txtFrom the repo root:
uvicorn backend.main:app --reloadFrom the repo root:
python -m black backendThe app will start on http://127.0.0.1:8000 by default.
-
Method:
POST -
Path:
/api/v0/facets -
Request body:
{ "query": "string" } -
Example request:
curl -sS -X POST "http://127.0.0.1:8000/api/v0/facets" \ -H "Content-Type: application/json" \ -d '{ "query": "public bam files for latino patients with diabetes" }'
-
Response: currently returns a hard-coded JSON structure representing resolved facets for the query. This is intentionally stubbed for PoC and will be replaced by a real implementation later.