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

Open spaceninja opened 1 year ago

spaceninja commented 1 year ago

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 commented 1 year ago

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

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