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 can't create a shake #694

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

API can't create a shake #694

spaceninja opened this issue Apr 16, 2023 · 1 comment

Comments

@spaceninja
Copy link
Member

On MLTSHP.com you can create a new shake by setting a title, description, and URL. This functionality is not available in the API.

@spaceninja
Copy link
Member Author

Suggestion: Add the following endpoint:

POST /api/shake

Creates a new shake as the authorized user.

Note that name in this case refers to the URL path to the shake. e.g., for https://mltshp.com/weloveamberandandre the pathname is weloveamberandandre.

Form Parameters

  • title - text for the shake title
  • name - text for the shake name
  • description - text for the shake description (optional)

Status Codes
201 Created – the shake was created, and the response body is an abbreviated shake representing it, containing only id, name, and url

  • 403 Forbidden – the shake could not be created due to permission issues

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