Skip to main content

A local HTTP mock API server driven by YAML specs

Project description

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

pip install mian-mohid-mockapi

Usage

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 for the full functional requirements.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mian_mohid_mockapi-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mian_mohid_mockapi-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file mian_mohid_mockapi-0.1.0.tar.gz.

File metadata

  • Download URL: mian_mohid_mockapi-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for mian_mohid_mockapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6c3bdeda2d1425a088dd54b419833c91c71d3ecd79a8b4fbad72174a0ccbf7b
MD5 56d9dfbd6d231aab7dd6a2c1619fda90
BLAKE2b-256 fd80b2ac8920d989b9afdcfc1766927da6c7823b8408296731776436644e1d13

See more details on using hashes here.

File details

Details for the file mian_mohid_mockapi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mian_mohid_mockapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96765199fbe35c3d1353fa2138cdcee6a925fae5c20e6d49c61087e54d025329
MD5 a56b1589c5da9535a17451ce1d9320a1
BLAKE2b-256 3d091d580d9006a413d0ea248a9c03d8d75e78ad81d1eb5aa52a18da2b459bec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page