An example, b&w internal config directory for the poke tool.
- install
poke-your-apigem by runninggem install poke-your-api - run
git clone https://github.com/BloomAndWild/poke-config.git - run
mv poke-config/* ~/.poke - Run
poke init - Run
poke -e stagingand enjoy
(bloomandwild/api/v2/availability/products is a good candidate for testing)
Enviroments can be set in the config file (i.e. ~/.poke/bloomandwild/config.json). Use poke -e env_name to run the request against the specified environment.
Environments can be managed by the poke env command.
Configuration can be changed by creating ~/.poke.json file.
{
"root_path": "/Users/janbator/.poke",
"aliases": {
"health": "range-discovery/healthz",
"range": "range-discovery/api/2023-08-15/range",
"products": "bloomandwild/api/v2/availability/products",
}
}Aliases can be managed by the poke alias command.