A simple Pastebin API written in Python using FastAPI.
| Method | Path | Description |
|---|---|---|
| GET | /ping |
Health check |
| POST | / |
Create a new paste |
| GET | /[id] |
Read a paste |
| PUT | /[id] |
Update a paste |
| DELETE | /[id] |
Delete a paste |
| GET | / |
List pastes (supports pagination, search, filters) |
- Create two files: one for the database and one for environment variables (e.g.
openbin.dband.env). - Populate the
.envfile with the following variables:
OPENBIN_SECRET=abc123
OPENBIN_MAX_SIZE=1048576- Start the container:
docker run -p 8000:8000 -v /path/to/openbin.db:/app/db --env-file /path/to/openbin.env -d rkax/openbin-coreRunning into issues or have ideas for further development? Let me know by creating an issue.