Welcome to Post-it!
Post-it is a tiny file sharing server for small files with limited lifespan.
API quickstart
Submit a file: POST binary body to "/"
- Accepts
X-Expire
(secs) and Content-Type
headers.
- Also accepts an
expire
URL param.
- Returns a secret token in the
X-Secret
header, and a File ID in response body.
Read a file: GET /<file-id>
- The remaining lifespan us returned in an
X-Expire
header (secs).
Update a file: PUT to /<file-id>
- Accepts the same headers and params as POST.
- Body may be left empty to leave it unchanged.
- File's lifespan can be extended by setting a new expiration time.
- Requires the secret token as an
X-Secret
header or a secret
URL param.
Delete a file: DELETE /<file-id>
- The secret token is required, like with PUT.
See the git repository for a more detailed README.
Source code
Post-it is written in Rust.
Get the sources at: https://git.ondrovo.com/MightyPork/postit