If you’re building or testing APIs, this tool makes mocking painless. It’s super fast, efficient, and flexible when you need it to be. All you have to do to start up is just use folders and JSON without any config set.
- ❄️ Zero-config start.
- 🌬️ Fast to boot, light on memory.
- 🪄 File-based and rule-based matching. Scripting supported.
Easy to start with npm package.
# install
npm install -D apimock-rs
# and go
npx apimock# just use folders and JSON
mkdir -p api/v1/
echo '{"hello": "world"}' > api/v1/hello.json
npx apimock
# response
curl http://localhost:3001/api/v1/hello
# --> {"hello":"world"}# also, there's room to tweak things later
npx apimock --initFor more details, 🧭 check out the docs.
This project is lovingly built and maintained by volunteers.
We hope it helps streamline your API development.
Please understand that the project has its own direction — while we welcome feedback, it might not fit every edge case 🌱
Depends on tokio / hyper / toml / serde / serde_json / json5 / console / rhai. In addition, mdbook (as to workflows).
