1 2 3 4 5 6 7 8 9 10 11 12 13
use utoipa::OpenApi; fn main() { // Get the OpenAPI spec from the server crate let openapi = fts_server::MarketplaceApi::openapi(); // Convert to YAML let yaml = openapi .to_yaml() .expect("Failed to convert OpenAPI spec to YAML"); println!("{}", yaml); }