Introduction
This project provides a mock server that can simulate multiple responses for the same API routes. It can be added as a dependency of your project, and started simply running an NPM command.
It is easy to use both for development and testing because the responses of the mocked API and other configuration options can be changed while the server is running using:
- Interactive command line user interface
- REST API client
- Other integration tools, such as Cypress commands
Documentation
To check out docs, visit mocks-server.org.
Ecosystem
Project | Status | Description |
---|---|---|
main | Main distribution. It includes all plugins preinstalled | |
core | Pluggable core. It can be used programmatically also | |
plugin-proxy | Plugin providing Proxy route handler | |
plugin-inquirer-cli | Plugin providing an administration interactive CLI | |
plugin-admin-api | Plugin providing an administration REST API | |
admin-api-client | API client for plugin-admin-api | |
admin-api-client-data-provider | API client for plugin-admin-api built using data-provider | |
admin-api-paths | Definition of plugin-admin-api routes | |
cypress-commands | Cypress commands to administrate Mocks Server | |
config | Provides configuration to core components and plugins | |
nested-collections | Nested collections manager. Used to provide alert namespaces to plugins | |
logger | Winston-based logger with namespaces and events emitter |
Contributing
Contributors are welcome. Please read the contributing guidelines and code of conduct.