Mini-Projekt: Lernkarten-API
Anforderungen
- Ressourcen
/api/cards - GET Liste, POST create
- optional GET by id / DELETE
- einheitliche Fehler
- unittest + test_client
- SQLite oder In-Memory-Liste
Demo
# Beispiel mit curl
curl -X POST http://127.0.0.1:5000/api/cards \
-H 'Content-Type: application/json' \
-d '{"front":"Hund","back":"dog"}'
Kapitel 52 geschafft!
Als Nächstes: Konfiguration und Secrets.