javigallostra / RocoLib

Web App to create and share bouldering routes of a climbing gym.
GNU General Public License v3.0
7 stars 3 forks source link

Add public API endpoint to mark a boulder as done #146

Closed juangallostra closed 2 years ago

juangallostra commented 2 years ago

Description of the issue/feature this PR addresses

Related issue: #103

Current behavior before PR

There was no way to mark a boulder as done for a specific user via the public API.

Desired behavior after PR is merged

The endpoint /api/v1/user/ticklist/boulder/done accepts POST requests with the boulder_id and gym as body to mark a specific problem as done for the logged in user.

-- I confirm I have tested this PR thoroughly and coded it according to PEP8.