mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-12-02 05:04:25 +01:00
feat(api): expose split expenses in the REST API and MCP
Add /api/splits/ endpoints for events, participants, expenses and payments, plus an event summary (balances and settle-up) and leave action. They share the web UI's access rules and share calculation. MCP reaches them through search_api/call_api, and its instructions now point to them.
This commit is contained in:
1 parent
77bf2d7bdb
commit
fe2e366a74
7 files changed
+772
-3
No files matched your search
+3
-1
@@ -37,7 +37,9 @@ INSTRUCTIONS = (
|
||||
"transaction counts toward: YYYY-MM in these tools, YYYY-MM-DD for recurring "
|
||||
"transactions and installment plans in call_api. Use summarize_transactions for totals instead "
|
||||
"of adding up search results. Look up ids with list_accounts and "
|
||||
"list_categories/list_tags/list_entities. For anything else, find the "
|
||||
"list_categories/list_tags/list_entities. Shared expenses with other people "
|
||||
"(trips, flats) live under /api/splits/: an event's balances and who should pay "
|
||||
"whom are at /api/splits/events/{id}/summary/. For anything else, find the "
|
||||
"endpoint with search_api and run it with call_api."
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user