docs: curl-Beispiel fuer /api/categories ergaenzt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 19:50:40 +02:00
parent 42ce0ece6d
commit 0c724da30a

View File

@@ -40,11 +40,23 @@ curl -s -H "Authorization: Bearer $KEY" \
"http://127.0.0.1:8096/api/transactions?date_from=2026-01-01&category_id=3&limit=50" | jq
```
## Kategorien & Regeln (`/api/categories`, `/api/category-rules`)
## Kategorien (`/api/categories`)
`GET`/`POST /api/categories` (`name`). `GET`/`POST /api/category-rules`
(`pattern`, `category_id`, `priority`) und `DELETE /api/category-rules/{id}`.
Regeln kategorisieren künftige Importe automatisch.
`GET`/`POST` (`name`).
```bash
curl -s -H "Authorization: Bearer $KEY" http://127.0.0.1:8096/api/categories | jq
curl -s -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"name": "Energie"}' \
http://127.0.0.1:8096/api/categories | jq
```
## Kategorie-Regeln (`/api/category-rules`)
`GET`/`POST` (`pattern`, `category_id`, `priority`) und
`DELETE /api/category-rules/{id}`. Regeln kategorisieren künftige Importe
automatisch.
```bash
curl -s -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \