hoprd_api_schema/
hoprd-api-schema.rs

1use utoipa::OpenApi;
2
3/// Schema generator executable
4///
5/// This executable statically generates the OpenAPI schema from the available API
6fn main() -> Result<(), Box<dyn std::error::Error>> {
7    println!("{}", hoprd_api::ApiDoc::openapi().to_pretty_json()?);
8
9    Ok(())
10}