MLTSHP / mltshp

Source for the application that runs mltshp.com
https://mltshp.com/
Mozilla Public License 2.0
50 stars 21 forks source link

API does not allow following/unfollowing users or shakes #686

Open spaceninja opened 1 year ago

spaceninja commented 1 year ago

There is no mechanism provided in the API to follow or unfollow a user or a shake.

spaceninja commented 1 year ago

Suggestion: Add the following endpoint (Since you can't follow a user, only the user's shake, this can be solved with one endpoint):

`POST /api/shake_id/(int: shakeid)/follow

(this should also be available on the /api/shake_name and /api/shake_user endpoints.)

Follows the given shake as the authorized user. The contents of this shake will then be included in the user's Friends shake.

Parameters

Status Codes