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
KituraOpenAPIConfigwith custom endpoints.Declaration
Swift
public init(apiPath: String?, swaggerUIPath: String?)Parameters
apiPathPath to serve OpenAPI specification from. If nil, do not serve.
swaggerUIPathPath to serve SwaggerUI from. If nil, do not serve.
View on GitHub
KituraOpenAPIConfig Structure Reference