Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API does not allow joining/quitting a shake #689

Open
spaceninja opened this issue Apr 16, 2023 · 1 comment
Open

API does not allow joining/quitting a shake #689

spaceninja opened this issue Apr 16, 2023 · 1 comment

Comments

@spaceninja
Copy link
Member

On MLTSHP.com you can join and quit a shake. The API does not support this functionality.

@spaceninja
Copy link
Member Author

spaceninja commented May 1, 2023

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)/join

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

Joins the given shake as the authorized user. The user will then have access to post to this shake.

Parameters

  • shakeid – the shake’s numeric ID

Status Codes

  • 200 OK – the shake was joined, and the response is the followed shake
    • If the shake was already joined, then it should be unjoined. (Question: what should be returned if a shake is unjoined?)
  • 400 Bad Request – the shake could not be joined
  • 403 Forbidden – the shake could not be joined due to permission issues
  • 404 Not Found – no such shake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant