MVP: FastAPI REST API #34

Closed
opened 2026-03-30 10:17:33 +02:00 by coornhert · 0 comments
Owner

Beschrijving

REST API die de Grondwet serveert op api.wetgit.nl.

Endpoints (MVP)

GET /api/v1/regelingen                    → lijst (alleen Grondwet in MVP)
GET /api/v1/regelingen/BWBR0001840        → metadata
GET /api/v1/regelingen/BWBR0001840/tekst  → volledige Markdown
GET /api/v1/regelingen/BWBR0001840/artikelen      → artikellijst
GET /api/v1/regelingen/BWBR0001840/artikelen/1    → artikel 1
GET /api/v1/regelingen/BWBR0001840/versies        → beschikbare toestanden
GET /api/v1/regelingen/BWBR0001840/diff?van=2017-11-17&tot=2018-12-21
GET /api/v1/health                        → health check

Technisch

  • FastAPI + uvicorn
  • Leest uit de lokale Markdown bestanden (geen database)
  • JSON responses met Pydantic models
  • Deploy via Ansible op dt-prod-01 (port 8002, nginx proxy api.wetgit.nl)
## Beschrijving REST API die de Grondwet serveert op api.wetgit.nl. ## Endpoints (MVP) ``` GET /api/v1/regelingen → lijst (alleen Grondwet in MVP) GET /api/v1/regelingen/BWBR0001840 → metadata GET /api/v1/regelingen/BWBR0001840/tekst → volledige Markdown GET /api/v1/regelingen/BWBR0001840/artikelen → artikellijst GET /api/v1/regelingen/BWBR0001840/artikelen/1 → artikel 1 GET /api/v1/regelingen/BWBR0001840/versies → beschikbare toestanden GET /api/v1/regelingen/BWBR0001840/diff?van=2017-11-17&tot=2018-12-21 GET /api/v1/health → health check ``` ## Technisch - FastAPI + uvicorn - Leest uit de lokale Markdown bestanden (geen database) - JSON responses met Pydantic models - Deploy via Ansible op dt-prod-01 (port 8002, nginx proxy api.wetgit.nl)
coornhert added this to the MVP — Grondwet vertical slice milestone 2026-03-30 10:17:33 +02:00
coornhert added the
type:feature
component:api
labels 2026-03-30 10:17:33 +02:00
Sign in to join this conversation.
No description provided.