Donation API #66

Closed
opened 2020-12-31 16:37:59 +00:00 by niggl · 0 comments
Owner

We need api endpoints for donations.

  • Get all donations (including distance)
  • Get a single donation (including distance)
  • Create a new donation
  • Create a new distance donation
  • Update a donation's information
  • Update a distance donation's information
  • Delete a donation (No matter which type)
  • Cascading deletion of donations on donor or runner deletion

Tests:

  • Create donation
  • Create distance donation
  • Get donation
  • Get distance donation
  • Update donation invalid
  • Update distance donation invalid
  • Update donation valid
  • Update distance donation valid
  • Delete donation
  • Delete distance donation
  • Deleting donor w/ any donations must return error (w/o force)
  • Deleting runner w/ distance donations must return error (w/o force)
  • Deleting donor w/ cascading deletion of any donations must work (w/ force)
  • Deleting runner w/ cascading deletion of distance donations must work (w/ force)

All of the create and update actions should accept numbers for their relations (to be expanded via #90)

We need api endpoints for donations. * [x] Get all donations (including distance) * [x] Get a single donation (including distance) * [x] Create a new donation * [x] Create a new distance donation * [x] Update a donation's information * [x] Update a distance donation's information * [x] Delete a donation (No matter which type) * [x] Cascading deletion of donations on donor or runner deletion Tests: * [x] Create donation * [x] Create distance donation * [x] Get donation * [x] Get distance donation * [x] Update donation invalid * [x] Update distance donation invalid * [x] Update donation valid * [x] Update distance donation valid * [x] Delete donation * [x] Delete distance donation * [x] Deleting donor w/ any donations must return error (w/o force) * [x] Deleting runner w/ distance donations must return error (w/o force) * [x] Deleting donor w/ cascading deletion of any donations must work (w/ force) * [x] Deleting runner w/ cascading deletion of distance donations must work (w/ force) All of the create and update actions should accept numbers for their relations (to be expanded via #90)
niggl added this to the Donations&Scans milestone 2020-12-31 16:37:59 +00:00
niggl added the
enhancement
priority:medium
labels 2020-12-31 16:37:59 +00:00
niggl added a new dependency 2021-01-09 16:34:10 +00:00
niggl removed a dependency 2021-01-10 16:13:28 +00:00
niggl added a new dependency 2021-01-12 16:47:28 +00:00
niggl added the
status:doing
label 2021-01-12 16:49:02 +00:00
niggl self-assigned this 2021-01-12 16:54:29 +00:00
niggl removed their assignment 2021-01-12 16:54:38 +00:00
niggl referenced this issue from a commit 2021-01-12 17:26:56 +00:00
niggl referenced this issue from a commit 2021-01-12 17:29:56 +00:00
niggl referenced this issue from a commit 2021-01-12 17:46:04 +00:00
niggl referenced this issue from a commit 2021-01-12 17:55:21 +00:00
niggl referenced this issue from a commit 2021-01-12 18:44:17 +00:00
niggl referenced this issue from a commit 2021-01-12 18:53:04 +00:00
niggl referenced this issue from a commit 2021-01-12 19:14:24 +00:00
niggl referenced this issue from a commit 2021-01-12 19:15:52 +00:00
niggl closed this issue 2021-01-13 17:20:09 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: lfk/backend#66
No description provided.