tina-core 0.0.2

Tina platform
Documentation
//! 接口文档
//! openapi

use utoipa::openapi::{path::Parameter, request_body::RequestBody, Responses};

/// 接口文档
pub trait ApiSchema {
    /// 获取接口文档请求体信息
    fn get_request_body() -> Option<RequestBody>
    where
        Self: Sized;
    /// 获取接口文档参数信息
    fn get_request_params() -> Option<Vec<Parameter>>
    where
        Self: Sized;
    /// 获取接口文档响应信息
    fn get_responses() -> Responses
    where
        Self: Sized;
}