apimock-rs (API Mock) Documentation
A developer-friendly, featherlight and functional HTTP(S) mock server built in Rust.
Who is this for?
- Developers who want to quickly mock APIs without heavy setup.
- Beginners who benefit from minimal configuration.
- Advanced users needing logic-based response behavior.
- Agents (and scripts) driving apimock non-interactively: checking what
a request would return with
get, writing a rule withset, and reading--format jsonoutput instead of parsing human text.
Quick Start
Easy to start with npm package.
npm install -D apimock-rs
npx apimock
# alternatively, starts with spefic root directory:
# npx apimock -d tests
For Users
- Getting started — install and your first mock API, in order
- Guides — task-indexed how-tos
- Reference — exhaustive lookup
- How it works — what apimock does and why
Contributing
- Contributing — build, test, and the RFC process
- Source code (GitHub)