44 lines
721 B
Markdown
44 lines
721 B
Markdown
# MockAPI - OpenAPI Mock Server Generator
|
|
|
|
A CLI tool that generates a fully functional mock API server from OpenAPI 3.x specifications.
|
|
|
|
## Features
|
|
|
|
- Generate mock server from OpenAPI 3.x specs
|
|
- Configurable response delays and error simulation
|
|
- Random realistic test data generation from schemas
|
|
- Request validation against OpenAPI spec
|
|
- Hot-reload on spec changes
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pip install -e .
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
# Validate an OpenAPI spec
|
|
mockapi validate spec.yaml
|
|
|
|
# Start a mock server
|
|
mockapi start spec.yaml
|
|
|
|
# Show configuration
|
|
mockapi show-config
|
|
```
|
|
|
|
## Development
|
|
|
|
```bash
|
|
# Install dev dependencies
|
|
pip install -e ".[dev]"
|
|
|
|
# Run tests
|
|
pytest tests/ -v
|
|
|
|
# Build
|
|
python -m build
|
|
```
|