apimock 5.1.1

HTTP(S) mock server. Drop JSON files into a folder and your API immediately exists.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! App entry point for the `apimock` executable.
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let Some(env_args) = apimock::args::EnvArgs::default()? else {
        // --init was supplied (or similar): work already done, nothing to run
        return Ok(());
    };
    let app = apimock::new(&env_args).await?;
    app.server.start().await;
    Ok(())
}