mirror of https://github.com/Seich/Beau.git
38 lines
859 B
YAML
38 lines
859 B
YAML
endpoint: https://pokeapi.co/api/v2/
|
|
|
|
# Try replacing this pokemon using params:
|
|
# beau request get-pokemon -P "pokemon=dragapult"
|
|
environment:
|
|
_:
|
|
pokemon: ditto
|
|
|
|
cookiejar: true
|
|
|
|
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
|
|
|
|
- alias: form-submission
|
|
form:
|
|
name: Dragapult
|
|
|
|
- alias: file-upload
|
|
formdata:
|
|
name: Beau
|
|
logo: $[createReadStream('../media/beau.png')]
|
|
|
|
GET https://httpbin.org/status/418: teapot
|
|
|
|
GET https://httpbin.org/cookies/set:
|
|
alias: set-cookies
|
|
params:
|
|
hello: World
|