hoprd_api_schema/
hoprd-api-schema.rs

1
2
3
4
5
6
7
8
9
10
use utoipa::OpenApi;

/// Schema generator executable
///
/// This executable statically generates the OpenAPI schema from the available API
fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("{}", hoprd_api::ApiDoc::openapi().to_pretty_json()?);

    Ok(())
}