Example 16500
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": "Skylar Stracke",
"email": "Beatrice_Sipes68@yahoo.com",
"role": "admin"
},
{
"id": 2,
"name": "Lewis Grant",
"email": "Tom33@gmail.com",
"role": "user"
}
]
"""
# Response headers
headers: {
Content-Type: "application/json"
X-Total-Count: "2"
X-Request-Id: "194de116-6144-49ad-a743-a252b4a35c62"
}
delay_ms: 304 # simulated latency
}