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:
curl -fsSL https://raw.githubusercontent.com/egeuysall/rest/master/install.sh | sh
βοΈ Usage
rest -d <path-to-json> [-e <expires-in-minutes>] [-t <max-access-count>]
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
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.
π License
Licensed under the Apache License 2.0.