Skip to main content

generate_openapi

Function generate_openapi 

Source
pub fn generate_openapi(manifest: &ServiceManifest, tenant_slug: &str) -> Value
Expand description

Generate a complete OpenAPI 3.1.0 specification from a service manifest.

tenant_slug is used to build the URL paths (/svc/{tenant}/{service}/{table}). For local generation (no deployment), pass any placeholder like "local".