Closed arsenikov closed 2 years ago
You could be smart an "reverse engineer" the api from here: https://github.com/lus/pasty/blob/master/web/assets/js/api.js
POST "api/v1/pastes" HEADERS "Content-Type": "application/json" BODY
{
"content": "example paste"
}
RETURNS
{
"content": "example paste",
"deletionToken": "sdfsdfsdfsdf",
"id": "e87f7hewfun",
"suggestedSyntaxType": "js"
}
Hey,
Yeah, as the others mentioned, there technically is a full API to interact with pasty, I was simply too lazy to document it.
I am currently working on the v2 API on branch api-refactor
which will include a full documentation of all endpoints.
Until this point is reached, you could simply use @MeerBiene s kind summary of the paste creation endpoint.
If you have any further questions about the API, just comment on this issue, I (or any other helpful fellow) will explain everything to you ^^
The API v2 is live on https://pasty.lus.pm now. Documentation can be found here. Feel free to ask further questions if they arise ^^.
Add a api for pasting to this