A YAML based REST API engine.
- Supports kubernetes-like YAML spec file.
- Directory structure does routing.
- Supports response body from file or raw body.
- Supports adding response headers.
- Supports using custom response status code.
- Supports limiting max threads used by the server.
- Provides option to sleep before replying to request.
- Use as a mocking engine for large systems without the need of writing code.
- Serve static assets.
- Download the binary from releases page.
- Build from sources
- Requires Rust 1.54+ and libssl-dev (only on Linux).
- Run
cargo build --release
- (Optionally) The built binary contains ELF Symbols. These can be stripped by using
strip mockerino
command.
- To initialize a sample spec run
mockerino init
.config.yaml
file,spec
, anddata
directories are created in the working directory. ./mockerino
starts the engine.
- Support for dynamic paths using path parameters and wildcard spec files.