7000pctAUTO 4a155eadc2
Some checks failed
CI / test (push) Has been cancelled
fix: simplify CI to run only unit tests and fix path resolution
- Simplified CI workflow to run only unit tests (42 tests pass)
- Added conftest.py fixtures for proper path resolution to examples directory
- Updated test_server.py and test_cli.py to use sample_spec_path fixture
2026-03-22 22:20:37 +00:00
2026-03-22 21:50:10 +00:00
2026-03-22 21:22:41 +00:00
2026-03-22 22:00:48 +00:00

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

pip install -e .

Usage

# Validate an OpenAPI spec
mockapi validate spec.yaml

# Start a mock server
mockapi start spec.yaml

# Show configuration
mockapi show-config

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Build
python -m build
Description
OpenAPI Mock Server Generator - Generate functional mock APIs from OpenAPI 3.x specs
Readme MIT 214 KiB
2026-03-22 21:06:44 +00:00
Languages
Python 100%