build (health/doc.rs)

dopbase · app/src/modules/health/doc.rs · rust · Apache-2.0
integration

Generates OpenAPI docs for health endpoint

// Source: https://github.com/dopbase/dopbase | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use super::{controller, model::HealthResponse};
use crate::http::{ErrorBody, HttpResponseFormat};
use utoipa::OpenApi;
#[derive(OpenApi)]
#[openapi(paths(controller::health), components(schemas(HealthResponse, ErrorBody, HttpResponseFormat<HealthResponse>)), tags((name="health")))]
struct HealthApi;
pub fn build() -> utoipa::openapi::OpenApi {
  HealthApi::openapi()
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key