e4ba6c815e
* Server file structure * Create HTTP server - graceful shutdown - routes - logging, CORS * gateways WIP * gateways API + swagger docs complete * Mixnodes API + swagger docs complete * Services API + swagger docs complete * Commit summary insert * Make troubleshooting DB easier * Summary API + swagger docs * Client log changes * QOL improvements - remove implicit panics via `as` - safer DTO conversions - add logging - new config
16 lines
539 B
Rust
16 lines
539 B
Rust
use crate::http::{Gateway, GatewaySkinny, Mixnode, Service};
|
|
use utoipa::OpenApi;
|
|
use utoipauto::utoipauto;
|
|
|
|
// manually import external structs which are behind feature flags because they
|
|
// can't be automatically discovered
|
|
// https://github.com/ProbablyClem/utoipauto/issues/13#issuecomment-1974911829
|
|
#[utoipauto(paths = "./nym-node-status-api/src")]
|
|
#[derive(OpenApi)]
|
|
#[openapi(
|
|
info(title = "Nym API"),
|
|
tags(),
|
|
components(schemas(nym_node_requests::api::v1::node::models::NodeDescription,))
|
|
)]
|
|
pub(super) struct ApiDoc;
|