reqq

A cli for making HTTP requests from predefined request files.

Expects available requests to be in a local .reqq folder.

Environments can be configured with arbitrary variables that can be embedded in request files inside of an .reqq/envs/ folder.

Install

git clone git@github.com:sethetter/reqq.git cd reqq && cargo install --path .

Usage

Request file at .reqq/create-user.reqq.

POST {{ baseUrl }}/api/v1/users X-Secret-Header: {{ secret }} { "username": "yep", "password": "nope" }

Env config at .reqq/envs/test.json.

{ "baseUrl": "https://example.com", "secret": "lolol" }

Then this command will issue the request!

reqq --env=test create-user

.reqq files

Reqq uses handlebars as the templating engine, so anything that's fair game there is fair game in .reqq files.

Commands