Example 11700
API Mock
Mock API response payloads for testing.
# Mock API definition
{
endpoint: "/api/v1/users"
method: "GET"
status: 200
# JSON response body
response: """
[
{
"id": 1,
"name": "Grayson Fahey",
"email": "Erik62@hotmail.com",
"role": "admin"
},
{
"id": 2,
"name": "Chad Rutherford",
"email": "Betsy.Rempel@gmail.com",
"role": "user"
}
]
"""
# Response headers
headers: {
Content-Type: "application/json"
X-Total-Count: "2"
X-Request-Id: "ff6598a7-4cb9-4d57-9e3b-0fc1b90ca47d"
}
delay_ms: 389 # simulated latency
}