Initial commit - Stand 26.04.2026

This commit is contained in:
OpenClaw
2026-04-26 07:51:39 +02:00
commit b29c467187
186 changed files with 39281 additions and 0 deletions
+22
View File
@@ -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 .