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

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

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. 🦀