mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-04 00:08:55 +00:00
23 lines
517 B
Rust
23 lines
517 B
Rust
use utoipa::OpenApi;
|
|
use zinc_oxide::handler::http::request::stream::*;
|
|
use zinc_oxide::meta::stream;
|
|
use zinc_oxide::meta::StreamType;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
#[derive(OpenApi)]
|
|
#[openapi(
|
|
paths(list_streams),
|
|
components(schemas(
|
|
stream::ListStream,
|
|
stream::Stream,
|
|
StreamType,
|
|
stream::Stats,
|
|
stream::StreamProperty,
|
|
))
|
|
)]
|
|
struct ApiDoc;
|
|
|
|
println!("{}", ApiDoc::openapi().to_pretty_json().unwrap());
|
|
}
|