https://github.com/greeenboi/roll
A colorful implementation of a cli tool to make http requests
https://github.com/greeenboi/roll
clap-rs cli http http-requests rust
Last synced: 7 months ago
JSON representation
A colorful implementation of a cli tool to make http requests
- Host: GitHub
- URL: https://github.com/greeenboi/roll
- Owner: greeenboi
- Created: 2024-04-30T21:13:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T21:29:12.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T20:48:48.412Z (about 1 year ago)
- Topics: clap-rs, cli, http, http-requests, rust
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Roll 🎲
Just Roll with it.
A colorful implementation of a cli tool to make http requests
> Sample command
```bash
$ cargo run https://www.boredapi.com/api/activity
```
> Response
```json
{
"activity":"Go to the gym",
"type":"recreational",
"participants":1,
"price":0.2,
"link":"",
"key":"4387026",
"accessibility":0.1
}
```
***
# Usage and flags
> verbose flag
```bash
$ cargo run -v https://www.boredapi.com/api/activity
```
```bash
$ cargo run --verbose https://www.boredapi.com/api/activity
```
> headers flag
```bash
$ cargo run https://www.boredapi.com/api/activity -H 'your headers here'
```
> method flag
```bash
$ cargo run https://www.boredapi.com/api/activity -X 'your Method'
```
> data flag
```bash
$ cargo run https://www.boredapi.com/api/activity -d 'your data / Payload'
```
***
[Find more APis Here](https://apipheny.io/free-api/)
Made with Rust. 🦀