Initial commit - Stand 26.04.2026
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
KREDIT_ID="dd625306-c4ec-4d94-9ff3-917aa79089ad"
|
||||
|
||||
echo "=== Test 1: PATCH Endpunkt (Restschuld-Update) ==="
|
||||
curl -X PATCH "http://localhost:3001/api/kredite/$KREDIT_ID" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"restschuld": 44878}' \
|
||||
-s | jq .
|
||||
|
||||
echo ""
|
||||
echo "=== Test 2: Zahlung hinzufügen (sollte jetzt funktionieren) ==="
|
||||
curl -X POST "http://localhost:3001/api/kredite/$KREDIT_ID/zahlungen" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"betrag": 500, "datum": "2026-04-20", "typ": "monatsrate", "notiz": "Test-PATCH"}' \
|
||||
-s | jq .
|
||||
|
||||
echo ""
|
||||
echo "=== Test 3: Kredit-Übersicht nach Update ==="
|
||||
curl "http://localhost:3001/api/kredite" \
|
||||
-s | jq .
|
||||
Reference in New Issue
Block a user