/roll

A colorful implementation of a cli tool to make http requests

Primary LanguageRust

Roll 🎲

Just Roll with it.

A colorful implementation of a cli tool to make http requests

Sample command

$ cargo run https://www.boredapi.com/api/activity 

Response

{
    "activity":"Go to the gym",
    "type":"recreational",
    "participants":1,
    "price":0.2,
    "link":"",
    "key":"4387026",
    "accessibility":0.1
}

Usage and flags

verbose flag

$ cargo run -v https://www.boredapi.com/api/activity 
$ cargo run --verbose https://www.boredapi.com/api/activity 



headers flag

$ cargo run https://www.boredapi.com/api/activity -H 'your headers here'



method flag

$ cargo run https://www.boredapi.com/api/activity -X 'your Method'



data flag

$ cargo run https://www.boredapi.com/api/activity -d 'your data / Payload'




Find more APis Here

Made with Rust. 🦀