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

https://github.com/egeuysall/rest

Post. Expire. Vanish.
https://github.com/egeuysall/rest

api dev docker full-stack json project rest

Last synced: about 1 month ago
JSON representation

Post. Expire. Vanish.

Awesome Lists containing this project

README

          




Rest




Post. Expire. Vanish.



Contributing

## Rest ๐Ÿ› ๏ธ

**Rest** is a minimal CLI tool for sharing JSON data via one-time, public REST endpoints.
Built for developers who need to quickly expose or test JSON payloads **without setup or authentication**.

Perfect for:

- Sharing payloads with teammates
- Testing webhooks or API clients
- Temporary data exposure during development

### ๐Ÿš€ Installation

Install `rest` using the following one-liner:

```sh
curl -fsSL https://raw.githubusercontent.com/egeuysall/rest/master/install.sh | sh
```

### โš™๏ธ Usage

```sh
rest -d [-e ] [-t ]
```

#### Options:

| Flag | Description | Default |
| ----------- | ----------------------------------------------- | ------- |
| `-d` string | **Required.** Path to your JSON file | โ€” |
| `-e` int | Expiration time in minutes | `10` |
| `-t` int | Max number of times the payload can be accessed | `1` |

#### Example

```sh
rest -d ./payload.json -e 10 -t 3
```

This shares `payload.json` for **10 minutes** and allows **up to 3 accesses**.

### ๐Ÿงน Auto-Expiration

Payloads are automatically deleted after:

- The expiration time (`-e`) is reached
- They have been accessed `-t` times

### ๐Ÿ“ฆ Use Cases

- Share a JSON response with your frontend team
- Provide sample payloads to test third-party integrations
- Simulate webhooks with disposable endpoints

### ๐Ÿง‘โ€๐Ÿ’ป Contributing

Contributions are welcome!
Feel free to open issues or pull requests on [GitHub](https://github.com/egeuysall/rest).

### ๐Ÿ“„ License

Licensed under the [Apache License 2.0](./LICENSE).