Responses behaviour
Configuring responses
Configuration example
{
"$shema": "node_modules/@mockly/server/tools/schemas/responses-config.json",
"responses": [
{
"path": "/me",
"method": "GET",
"status": 401,
"body": "Unauthorized"
},
{
"path": "/artists",
"method": "POST",
"status": 500,
"body": {
"message": "Internal server error"
}
}
]
}Last updated
Was this helpful?