5a549792eaf7347303af4a6079a75ff0f2ec1255
MockAPI
OpenAPI Mock Server Generator - Generate functional mock APIs from OpenAPI 3.x specs
Features
- Generate mock API servers from OpenAPI 3.x specifications
- Realistic random data generation based on JSON schemas
- Request validation against OpenAPI specs
- Response delay simulation
- Hot reload support for spec file changes
- Configurable via YAML or environment variables
Installation
pip install mockapi
Usage
Validate an OpenAPI spec
mockapi validate openapi.yaml
Start a mock server
mockapi start openapi.yaml --port 8080
Show current configuration
mockapi show-config
Configuration
Create a mockapi.yaml file:
port: 8080
host: 0.0.0.0
delay: 100
seed: 42
Or use environment variables:
MOCKAPI_PORTMOCKAPI_HOSTMOCKAPI_SEED
License
MIT License
Releases
1
v0.1.0 Initial Release
Latest
Languages
Python
100%