Function rocket_okapi::get_openapi_route
source · [−]pub fn get_openapi_route(spec: OpenApi, settings: &OpenApiSettings) -> Route
Expand description
Convert OpenApi object to routable endpoint.
Used to serve an OpenApi
object as an openapi.json
file in Rocket.