Expand description
Custom fixture format support for simple JSON fixtures
Supports fixtures in two formats:
Flat format (preferred):
{
"method": "GET",
"path": "/api/v1/endpoint",
"status": 200,
"response": { /* response body */ },
"headers": { /* optional */ },
"delay_ms": 0 /* optional */
}Nested format (also supported):
{
"request": {
"method": "GET",
"path": "/api/v1/endpoint"
},
"response": {
"status": 200,
"headers": { /* optional */ },
"body": { /* response body */ }
}
}Path matching supports path parameters using curly braces:
/api/v1/hives/{hiveId}matches/api/v1/hives/hive_001
Paths are automatically normalized (trailing slashes removed, multiple slashes collapsed)
Structsยง
- Custom
Fixture - Custom fixture structure matching the simple JSON format
- Custom
Fixture Loader - Custom fixture loader that scans a directory for fixture files
- Nested
Fixture - Nested fixture format for backward compatibility
- Nested
Request - Request portion of a nested fixture
- Nested
Response - Response portion of a nested fixture