| Crates.io | apimock |
| lib.rs | apimock |
| version | 4.5.7 |
| created_at | 2024-03-05 13:43:51.711209+00 |
| updated_at | 2026-01-24 09:47:21.718416+00 |
| description | A developer-friendly, featherlight and functional HTTP(S) mock server built in Rust. |
| homepage | |
| repository | https://github.com/apimokka/apimock-rs |
| max_upload_size | |
| id | 1163120 |
| size | 3,641,670 |

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.
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 --init
For 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).