[GH-ISSUE #7] Json post endpoint #6

Closed
opened 2026-02-27 10:15:14 +03:00 by kerem · 3 comments
Owner

Originally created by @dylanjamesdev on GitHub (Oct 3, 2022).
Original GitHub issue: https://github.com/matze/wastebin/issues/7

Can you add a json post endpoint that takes content as input and returns url, so we can post to the server.

Specific use-case is posting long responses to our instance from discord bot exec command

Originally created by @dylanjamesdev on GitHub (Oct 3, 2022). Original GitHub issue: https://github.com/matze/wastebin/issues/7 Can you add a json post endpoint that takes content as input and returns url, so we can post to the server. Specific use-case is posting long responses to our instance from discord bot exec command
kerem closed this issue 2026-02-27 10:15:15 +03:00
Author
Owner

@matze commented on GitHub (Oct 3, 2022):

Hmm, you can post to / as explained here and receive the URL. Or do I miss something?

<!-- gh-comment-id:1265107505 --> @matze commented on GitHub (Oct 3, 2022): Hmm, you can post to `/` as explained [here](https://github.com/matze/wastebin#api-endpoints) and receive the URL. Or do I miss something?
Author
Owner

@dylanjamesdev commented on GitHub (Oct 13, 2022):

I get error 400's when posting to that endpoint, not sure why. I haven't changed any code manually.

<!-- gh-comment-id:1278191018 --> @dylanjamesdev commented on GitHub (Oct 13, 2022): I get error 400's when posting to that endpoint, not sure why. I haven't changed any code manually.
Author
Owner

@matze commented on GitHub (Oct 14, 2022):

My bad, I had it fixed in the preparation branch for axum 0.6 but never merged that change back into master. I will cut a 2.0.1 release soon.

<!-- gh-comment-id:1279356227 --> @matze commented on GitHub (Oct 14, 2022): My bad, I had it fixed in the [preparation branch for axum 0.6](https://github.com/matze/wastebin/tree/prepare-axum-0-6) but never merged that change back into master. I will cut a 2.0.1 release soon.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#6
No description provided.