stubby4node
stubby4node copied to clipboard
How to return different responses for the same endpoint ?
For exemple :
Endpoint: /hey/0011 hit:1 -> {"hey":"a"} hit:2 -> {"hey":"b"}
Like this?
From https://github.com/mrak/stubby4node#response
The
responseproperty can also be a yaml sequence of responses that cycle as each request is made.
- request:
url: /hey/0011
response:
- status: 200
body: '{"hey":"a"}'
- status: 200
body: '{"hey":"b"}'
oww =/ I hadn't understood. Tks mrak. I s2 s4n =))