docs: curl-Beispiel fuer /api/categories ergaenzt
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
"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`
|
`GET`/`POST` (`name`).
|
||||||
(`pattern`, `category_id`, `priority`) und `DELETE /api/category-rules/{id}`.
|
|
||||||
Regeln kategorisieren künftige Importe automatisch.
|
```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
|
```bash
|
||||||
curl -s -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
|
curl -s -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
|
||||||
|
|||||||
Reference in New Issue
Block a user