no API support for full CRUD
ideally, I'd hope the API would allow the user to
- upload new files
- get a list of all files
- update files
- delete files
currently only supports the first
I think deleting is already supported with https://github.com/TheReverend403/uPste/issues/10
I haven't tested it though
EDIT: Nevermind, you mean fully deleting, not copying a deletion link
It would be a nice thing to have for say ShareX where you could have a context menu option for an upload with "Delete from Server and Locally" instead of having to go to the main site and delete it as well as remove the local file
That should be documented then.
Example API usage:
# delete
curl -X DELETE -F key="$key" https://u.pste.pw/api
# list
curl -X GET -F key="$key" https://u.pste.pw/api
# edit
curl -X PUT -F key="$key" https://u.pste.pw/api
Although the REST verbs could be replaced with specific API endpoints. Probably needs more bike-shedding.
tbh I'm considering doing a full rewrite with Django where the API will be a first class citizen. Maybe even a Vue SPA for the frontend.
I love the first-class API and SPA ideas.
If only I knew JavaScript.