mirror of https://github.com/Seich/Beau.git
20 lines
493 B
YAML
20 lines
493 B
YAML
endpoint: https://pokeapi.co/api/v2
|
|
|
|
# Try replacing this pokemon using params:
|
|
# beau request get-pokemon -P "pokemon=dragapult"
|
|
environment:
|
|
_:
|
|
pokemon: ditto
|
|
|
|
GET /pokemon/$env._.pokemon: get-pokemon
|
|
GET $get-pokemon.body.location_area_encounters: get-encounters
|
|
|
|
POST https://httpbin.org/anything:
|
|
- alias: post-first-area
|
|
payload:
|
|
area: $get-encounters.body.0.location_area.name
|
|
|
|
- alias: post-pokemon-type
|
|
payload:
|
|
type: $get-pokemon.body.types.0.type.name
|