Skip to content

Commit

Permalink
Merge pull request #12 from SAMAD101/issue8
Browse files Browse the repository at this point in the history
Improved readme
  • Loading branch information
Mr-Sunglasses authored Dec 22, 2023
2 parents 0eb7523 + 584b169 commit 49e4dcb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,35 @@
<hr>

paste.py 🐍 - A pastebin written in python.

<hr>

## Uasge:

### Uisng CLI
> cURL is required to use the CLI.
- Paste a file named 'file.txt'

```bash
curl -X POST -F "[email protected]" https://paste.fosscu.org/file
```

- Paste from stdin

```bash
echo "Hello, world." | curl -X POST -F "file=@-" https://paste.fosscu.org/file
```

- Delete an existing paste

```bash
curl -X DELETE https://paste.fosscu.org/paste/<id>
```

### Using the web interface:
[Go here](https://paste.fosscu.org/web)

<hr>

For info API usage and shell functions, see the [website](https://paste.fosscu.org).

0 comments on commit 49e4dcb

Please sign in to comment.