thefueley / scholar-power-api

UMGC CMSC 495 API for Scholar Power Workout App
GNU General Public License v3.0
0 stars 0 forks source link

[Request] Support `DELETE /api/v1/history/ID` #68

Closed MoistCode closed 1 year ago

MoistCode commented 1 year ago

It doesn't look like we currently support deleting a history at /api/v1/history/<ID>

thefueley commented 1 year ago

Updated the routes for workout history.

Get workout history /api/v1/history/{uid}
Update workout history /api/v1/history/{id}
Body:

{
    "athlete_id": "1",
    "notes": "so-so 😕"
}

Delete workout history /api/v1/history/{id}
Body:

{
    "athlete_id": "1"
}

Enforced previously unenforced authz. Updated workout history section of README