API Reference
POST
/convertMultipart upload — returns reflowable paragraph HTML matching the peer-review-assistant Text view.
curl -F file=@paper.pdf \
http://localhost:8000/convert
→ { "filename": "paper.pdf",
"page_count": 12,
"html": "<section class=\"pdf-page\">…" }
POST
/extract-textMultipart upload — per-page plain text via pypdf.
curl -F file=@paper.pdf \
http://localhost:8000/extract-text
→ { "filename": "paper.pdf",
"page_count": 12,
"pages": [ { "page": 1, "text": "…" }, … ] }
GET
/healthLiveness probe.
curl http://localhost:8000/health
→ { "status": "ok" }
Try it — upload a PDF
Upload a PDF above to see the converted HTML here.