Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 915 Bytes

File metadata and controls

55 lines (40 loc) · 915 Bytes

Commandes curl

Variables

export API_BASE_URL="http://localhost:3000"

1) Health check

curl -sS "$API_BASE_URL/health" | jq

2) Metrics (Prometheus)

curl -sS "$API_BASE_URL/metrics"

3) Creer un batch

curl -sS -X POST "$API_BASE_URL/api/documents/batch" \
  -H "Content-Type: application/json" \
  -d '{
    "userIds": ["user_1", "user_2", "user_3"]
  }' | jq

4) Lire le statut d un batch

export BATCH_ID="<batch_id>"
curl -sS "$API_BASE_URL/api/documents/batch/$BATCH_ID" | jq

5) Telecharger un PDF

export DOCUMENT_ID="<document_id>"
curl -sS -L "$API_BASE_URL/api/documents/$DOCUMENT_ID" -o "$DOCUMENT_ID.pdf"

6) Benchmark (1000 docs)

pnpm run benchmark

Sorties generees:

  • benchmark-report/summary.json
  • benchmark-report/samples.csv
  • benchmark-report/report.md
  • benchmark-report/report.html