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
@@ -17,6 +17,10 @@ router.register(r"currencies", views.CurrencyViewSet)
|
||||
router.register(r"exchange-rates", views.ExchangeRateViewSet)
|
||||
router.register(r"dca/strategies", views.DCAStrategyViewSet)
|
||||
router.register(r"dca/entries", views.DCAEntryViewSet)
|
||||
router.register(r"splits/events", views.SplitEventViewSet, basename="split-events")
|
||||
router.register(r"splits/participants", views.SplitParticipantViewSet, basename="split-participants")
|
||||
router.register(r"splits/expenses", views.SplitExpenseViewSet, basename="split-expenses")
|
||||
router.register(r"splits/payments", views.SplitPaymentViewSet, basename="split-payments")
|
||||
router.register(r"import/profiles", views.ImportProfileViewSet, basename="import-profiles")
|
||||
router.register(r"import/runs", views.ImportRunViewSet, basename="import-runs")
|
||||
router.register(r"import/import", views.ImportViewSet, basename="import-import")
|
||||
|
||||
Reference in new issue
Block a user