Metadata-Version: 2.4
Name: mian-mohid-mockapi
Version: 0.1.0
Summary: A local HTTP mock API server driven by YAML specs
Author: Mian Mohid
License: MIT
Project-URL: Homepage, https://github.com/mian-mohid/mockapi
Keywords: mockapi,yaml,http,server,cli
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: PyYAML>=6.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"

# mockapi

`mockapi` is a small YAML-driven HTTP mock server for local development and API simulation.

The PyPI distribution name is `mian-mohid-mockapi`, while the CLI command remains `mockapi`.

## Install

```bash
pip install mian-mohid-mockapi
```

## Usage

```bash
mockapi serve spec.yaml
mockapi serve spec.yaml --port 3000
mockapi validate spec.yaml
```

## Spec

Supported endpoint fields:

- `path`
- `method`
- `status_code`
- `response`
- `headers` optional
- `delay` optional in milliseconds
- `description` optional
- `auth` optional, including `none`

See [requirements/fr.md](requirements/fr.md) for the full functional requirements.
