SirSeim / SPFY

Safe Place for Youth
GNU General Public License v3.0
2 stars 11 forks source link

Reverse Actions #50

Open cf7 opened 7 years ago

cf7 commented 7 years ago

For every action that SPY staff can utilize on the app, there needs to be another action that reverses it . . .

(This does not mean that every button needs an undo button right next to it.) It means doing things such as the following . . .

SirSeim commented 7 years ago

To checkout a client from a dropin: DELETE /api/dropins/{dropinID}/checkin with example payload:

{
    "clients": [
        2,3,4
    ]
}

Returns:

{
  "statusCode": 200,
  "message": "Success checking out client from dropin!",
  "result": {
    "dropin": 2,
    "clients": [
      2,
      3,
      4
    ]
  }
}

If client IDs are not being returned, its most likely because that client is not associated with that dropin (aka, you never checked in that client for that dropin)

SirSeim commented 7 years ago

Files is completed

SirSeim commented 7 years ago

So isn't this complete?