KituraOpenAPIConfig

public struct KituraOpenAPIConfig

Defines the endpoints for the OpenAPI document and SwaggerUI tool when used in conjunction with KituraOpenAPI.addEndpoints(to:with:).

  • Path to serve OpenAPI specification from. If nil, do not serve.

    Declaration

    Swift

    public let apiPath: String?
  • Path to serve SwaggerUI from. If nil, do not serve.

    Declaration

    Swift

    public let swaggerUIPath: String?
  • Create a KituraOpenAPIConfig with custom endpoints.

    Declaration

    Swift

    public init(apiPath: String?, swaggerUIPath: String?)

    Parameters

    apiPath

    Path to serve OpenAPI specification from. If nil, do not serve.

    swaggerUIPath

    Path to serve SwaggerUI from. If nil, do not serve.