pub fn url<U: Into<Url<'static>>>(mut self, url: U, openapi: OpenApi) -> Self {
        self.urls.push((url.into(), openapi));

        self
    }
/// Add api doc [`Url`] into [`SwaggerUi`].
///
/// Method takes two arguments where first one is path which exposes the [`OpenApi`] to the user.
/// Second argument is the actual Rust implementation of the OpenAPI doc which is being exposed.
///
/// Calling this again will add another url to the Swagger UI.
///
/// # Examples
///
/// Expose manually created OpenAPI doc.
/// ```rust
/// # use utoipa_swagger_ui::SwaggerUi;
/// let swagger = SwaggerUi::new("/swagger-ui/{_:.*}")
///     .url("/api-doc/openapi.json", utoipa::openapi::OpenApi::new(
///        utoipa::openapi::Info::new("my application", "0.1.0"),
///        utoipa::openapi::Paths::new(),
/// ));
/// ```
///
/// Expose derived OpenAPI doc.
/// ```rust
/// # use utoipa_swagger_ui::SwaggerUi;
/// # use utoipa::OpenApi;
/// # #[derive(OpenApi)]
/// # #[openapi(handlers())]
/// # struct ApiDoc;
/// let swagger = SwaggerUi::new("/swagger-ui/{_:.*}")
///     .url("/api-doc/openapi.json", ApiDoc::openapi());
/// ```
Add api doc [`Url`] into [`SwaggerUi`].
Method takes two arguments where first one is path which exposes the [`OpenApi`] to the user.
Second argument is the actual Rust implementation of the OpenAPI doc which is being exposed.

Calling this again will add another url to the Swagger UI.
Add api doc [ ` Url ` ] into [ ` SwaggerUi ` ] . Method takes two arguments where first one is path which exposes the [ ` OpenApi ` ] to the user . Second argument is the actual Rust implementation of the OpenAPI doc which is being exposed . Calling this again will add another url to the Swagger UI .
pub fn url<U: Into<Url<'static>>>(mut self, url: U, openapi: OpenApi) -> Self {
        self.urls.push((url.into(), openapi));
        self
    }
pub fn url < U : Into < Url < ' static > > > ( mut self , url : U , openapi : OpenApi ) -> Self { self . urls . push ( ( url . into ( ) , openapi ) ) ; self }
Add api doc [`Url`] into [`SwaggerUi`].
Add api doc [ ` Url ` ] into [ ` SwaggerUi ` ] .
mut self
url
U
openapi
OpenApi
examples
Expose manually created OpenAPI doc.
Expose manually created OpenAPI doc .
use utoipa_swagger_ui::swaggerui;
let swagger = SwaggerUi::new("/swagger-ui/{_:.*}")
.url("/api-doc/openapi.json", utoipa::openapi::OpenApi::new(
utoipa::openapi::Info::new("my application", "0.1.0"),
utoipa::openapi::Paths::new(),
));
```

Expose derived OpenAPI doc.
let swagger = SwaggerUi :: new ( " / swagger - ui / { _ : . * } " ) . url ( " / api - doc / openapi . json " utoipa :: openapi :: OpenApi :: new ( utoipa :: openapi :: Info :: new ( " my application " " 0 . 1 . 0 " ) utoipa :: openapi :: Paths :: new () )) ; ` ` ` Expose derived OpenAPI doc .
use utoipa_swagger_ui::swaggerui;
None
use utoipa::openapi;
None
#[derive(openapi)]
None
#[openapi(handlers())]
None
struct apidoc;
let swagger = SwaggerUi::new("/swagger-ui/{_:.*}")
.url("/api-doc/openapi.json", ApiDoc::openapi());
```
let swagger = SwaggerUi :: new ( " / swagger - ui / { _ : . * } " ) . url ( " / api - doc / openapi . json " ApiDoc :: openapi () ) ; ` ` `