From 0c724da30a076929b61ca0287f389c01e8fe6da7a7a9366b99f25ce456f597dd Mon Sep 17 00:00:00 2001 From: wlfb Date: Fri, 17 Jul 2026 19:50:40 +0200 Subject: [PATCH] docs: curl-Beispiel fuer /api/categories ergaenzt Co-Authored-By: Claude Fable 5 --- .claude/skills/finanz-api/SKILL.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.claude/skills/finanz-api/SKILL.md b/.claude/skills/finanz-api/SKILL.md index 1403a91..d66eba0 100644 --- a/.claude/skills/finanz-api/SKILL.md +++ b/.claude/skills/finanz-api/SKILL.md @@ -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" \