jaywcjlove / mocker-api
mocker-api that creates mocks for REST APIs. It will be helpful when you try to test your application without the actual REST API server.
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing jaywcjlove/mocker-api in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewUsing my app is also a way to support me: 中文 · Quick Start · Usage · Options · Delayed · Example · License · type creates mocks for REST APIs. It is helpful when you need to test your application without the actual REST API server. **Features:** 🔥 Built-in support for hot Mocker file replacement. 🚀 Quickly and easily configure the API via JSON. 🌱 Mock API proxying made simple. 💥 Can be used independently without relying on webpack and webpack-dev-server. Quick Start Installation you can put it the config as a current project dependency. Usage dev support mock, configured in . you can modify the http-proxy options and add the event listeners by adding the httpProxy configuration Options • => Proxy settings, Turn a path string such as into a regular expression. • => rewrite target's url path. Object-keys will be used as RegExp to match paths. #62 • => the proxy regular expression support full url path. if the proxy regular expression like can be matched. #25 • => priority or #151 • => Setting req headers host. • => Set the listen event and configuration of http-proxy • JSON body parser • Text body parser • Raw body parser • URL-encoded form body parser • => bodyParser settings. eg: will parsed with • => Options object as defined chokidar api options • => Access Control Allow options. ⚠️ No wildcard asterisk ~~ ~~ - use parameters instead , support ⚠️ No wildcard asterisk ~~ ~~ - use parameters instead , support Delayed Response You can use functional tool to enhance mock. #17 apiMocker Multi entry file watching Example Using With Command Base example >⚠️ Not dependent on webpack and webpack-dev-server. Or you can put it the config as a current project dependency. Using With Express Express example To use api mocker on your express projects. >⚠️ Not dependent on webpack and webpack-dev-server. or Using With Webpack webpack example To use api mocker on your Webpack projects, simply add a setup options to your webpack-dev-server options: Change your config file to tell the dev server where to look for files: . Must have a file suffix! For example: . Let's add a script to easily run the dev server as well: Mock API proxying made simple. Using With create-react-app create-react-app example To use api mocker on your create-react-app projects. create and place the following contents in it: Development Contributors As always, thanks to our amazing contributors! Made with github-action-contributors. License [MIT © Kenny Wong](htt _...truncated for preview_