public class OpenApiTransformer extends Object
ApiDescription
into an OpenAPI/Swagger model.Modifier and Type | Method and Description |
---|---|
static io.swagger.models.Swagger |
execute(ApiDescription apiDescription,
ApiDescription... externalApiDescriptions)
Transforms an
ApiDescription into a Swagger model. |
static io.swagger.models.Swagger |
execute(LocalizableString title,
String host,
String basePath,
boolean secure,
ApiDescription apiDescription,
ApiDescription... externalApiDescriptions)
Transforms an
ApiDescription into a Swagger model. |
public static io.swagger.models.Swagger execute(LocalizableString title, String host, String basePath, boolean secure, ApiDescription apiDescription, ApiDescription... externalApiDescriptions)
ApiDescription
into a Swagger
model.title
- API titlehost
- Hostname or IP address, with optional portbasePath
- Base-path on hostsecure
- true
when host is using HTTPS and false
when using HTTPapiDescription
- CREST API DescriptorexternalApiDescriptions
- External CREST API Descriptions, for resolving Reference
s, or null
Swagger
modelpublic static io.swagger.models.Swagger execute(ApiDescription apiDescription, ApiDescription... externalApiDescriptions)
ApiDescription
into a Swagger
model.
Note: The returned descriptor does not contain an Info
object, a base path, a host or a scheme, as
these will all depend on the deployment and/or request.
apiDescription
- CREST API DescriptorexternalApiDescriptions
- External CREST API Descriptions, for resolving Reference
s, or null
Swagger
modelCopyright © 2010-2018, ForgeRock All Rights Reserved.