Skip to main content

router_v2_docs

Function router_v2_docs 

Source
pub fn router_v2_docs() -> Router
Expand description

Serve the v2 API documentation: the build-time OpenAPI document and the two UIs that render it. Unlike finish_v1_docs, nothing here inspects the router, so a route that is generated but never mounted would still appear in the document; v2_documented_routes_are_mounted asserts that never ships.