Delay
Use delay attribute in milliseconds to simulate network latency.
For example, create a manifest as follows:
version: v1.3
type: Stub
rules:
- request:
path: /users
method: POST
response:
delay: 500
headers:
content-type: application/json
body:
id: 1Send the request POST /users and the stub will return a response after 500 ms.
Last updated