An open API service indexing awesome lists of open source software.

https://github.com/guyfedwards/pbandj


https://github.com/guyfedwards/pbandj

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# pbandj
Read-then-burn esque pastebin. Each entry can only be viewed once.

## Running
### Build local
```sh
make build
./pbandj -port 1337
```
### Docker
Docker image is available with `docker pull guyfedwards/pbandj` or you can build locally:
```sh
docker build .
docker run -p 1337:1337 --name pbandj
```

## UI
A basic form is rendered at `/{id}`. This can be used to create a new paste, or will display an existing one if `{id}` is present.

## API
```
POST /paste
application/json
{
content string
}
{
id string
}
```

```
GET /paste/{id}
application/json
{
id string
content string
}
```