Package org.forgerock.api.transform
Class OpenApiTransformer
java.lang.Object
org.forgerock.api.transform.OpenApiTransformer
Transforms an
ApiDescription into an OpenAPI/Swagger model.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-