Implement DistributedTransaction CRUD API endpoints #20

Open
opened 2026-10-30 21:00:40 -06:00 by west · 0 comments
Owner

📋 CRUD HTTP endpoints for distributed expenses on the server.

🎯 Acceptance Criteria:

  • GET /distributed — list active distributed expenses
  • POST /distributed — create a new distributed expense
  • PUT /distributed/{id} — update (e.g., extend days, change amount)
  • DELETE /distributed/{id} — soft delete
  • On create/update/delete: automatically appends action to sync_outbox
  • dailyAmount auto-calculated on creation from totalAmount / numDays

📝 Notes: Server should validate that totalAmount is positive and numDays >= 1.

📋 **CRUD HTTP endpoints for distributed expenses on the server.** 🎯 **Acceptance Criteria:** - [ ] GET /distributed — list active distributed expenses - [ ] POST /distributed — create a new distributed expense - [ ] PUT /distributed/{id} — update (e.g., extend days, change amount) - [ ] DELETE /distributed/{id} — soft delete - [ ] On create/update/delete: automatically appends action to sync_outbox - [ ] dailyAmount auto-calculated on creation from totalAmount / numDays 📝 **Notes:** Server should validate that totalAmount is positive and numDays >= 1.
Sign in to join this conversation.
No description provided.