Skip to content

marle3003/mokapi

Repository files navigation

Mokapi

Easy and flexible API mocking

Github release Build status Codecov branch MIT License

Download · Documentation

Mokapi is an open-source tool that allows Agile, DevOps and Continuous Deployment teams to create and test API designs before actually building them.

With Mokapi you can quickly and easily test various scenarios, such as delayed or failed responses without having to rely on a fully functional API.

Mokapi helps you improve the quality of APIs and reduces the risk of bugs or errors in production.

Its core feature are:

  • Multiple Protocol support: HTTP, HTTPS, Apache Kafka, SMTP, LDAP
  • Everything as Code: Reusing, version control, consistency and integrate mocks with your CI/CD.
  • An embedded JavaScript engine to control everything - status, headers, delays, errors or other edge cases.
  • Patch Configuration changes for mocking needs, rather than changing the original contract
  • Multiple Provider support: File, HTTP, GIT, NPM to gather configurations and scripts.
  • Dashboard to see what's going on.

 

Buy Me A Coffee

Example

Mokapi Web UI

Web UI

Mokapi Web UI

Usage

docker run --env 'MOKAPI_Services_Swagger-Petstore_Config_Url'='https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v3.0/petstore.yaml' \
  --env 'MOKAPI_Services_Swagger-Petstore_Http_Servers[0]_Url'='http://:80' \
  -p 80:80 -p 8080:8080 \
  mokapi/mokapi:latest

Documentation