Package org.forgerock.api.transform
Class OpenApiTransformer
- java.lang.Object
-
- org.forgerock.api.transform.OpenApiTransformer
-
public class OpenApiTransformer extends Object
Transforms anApiDescriptioninto an OpenAPI/Swagger model.- See Also:
- OpenAPI 2.0 spec
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.swagger.models.Swaggerexecute(ApiDescription apiDescription, ApiDescription... externalApiDescriptions)Transforms anApiDescriptioninto aSwaggermodel.static io.swagger.models.Swaggerexecute(LocalizableString title, String host, String basePath, boolean secure, ApiDescription apiDescription, ApiDescription... externalApiDescriptions)Transforms anApiDescriptioninto aSwaggermodel.
-
-
-
Method Detail
-
execute
public static io.swagger.models.Swagger execute(LocalizableString title, String host, String basePath, boolean secure, ApiDescription apiDescription, ApiDescription... externalApiDescriptions)
Transforms anApiDescriptioninto aSwaggermodel.- Parameters:
title- API titlehost- Hostname or IP address, with optional portbasePath- Base-path on hostsecure-truewhen host is using HTTPS andfalsewhen using HTTPapiDescription- CREST API DescriptorexternalApiDescriptions- External CREST API Descriptions, for resolvingReferences, ornull- Returns:
Swaggermodel
-
execute
public static io.swagger.models.Swagger execute(ApiDescription apiDescription, ApiDescription... externalApiDescriptions)
Transforms anApiDescriptioninto aSwaggermodel.Note: The returned descriptor does not contain an
Infoobject, a base path, a host or a scheme, as these will all depend on the deployment and/or request.- Parameters:
apiDescription- CREST API DescriptorexternalApiDescriptions- External CREST API Descriptions, for resolvingReferences, ornull- Returns:
Swaggermodel
-
-