public final class OASFactory
extends java.lang.Object
OASFactory.createObject(OpenAPI.class)
.setExternalDocs(OASFactory.createObject(ExternalDocumentation.class).url("http://myDoc"));
Modifier and Type | Method and Description |
---|---|
static APIResponse |
createAPIResponse()
This method creates a new
APIResponse instance. |
static APIResponses |
createAPIResponses()
This method creates a new
APIResponses instance. |
static Callback |
createCallback()
This method creates a new
Callback instance. |
static Components |
createComponents()
This method creates a new
Components instance. |
static Contact |
createContact()
This method creates a new
Contact instance. |
static Content |
createContent()
This method creates a new
Content instance. |
static Discriminator |
createDiscriminator()
This method creates a new
Discriminator instance. |
static Encoding |
createEncoding()
This method creates a new
Encoding instance. |
static Example |
createExample()
This method creates a new
Example instance. |
static ExternalDocumentation |
createExternalDocumentation()
This method creates a new
ExternalDocumentation instance. |
static Header |
createHeader()
This method creates a new
Header instance. |
static Info |
createInfo()
This method creates a new
Info instance. |
static License |
createLicense()
This method creates a new
License instance. |
static Link |
createLink()
This method creates a new
Link instance. |
static MediaType |
createMediaType()
This method creates a new
MediaType instance. |
static OAuthFlow |
createOAuthFlow()
This method creates a new
OAuthFlow instance. |
static OAuthFlows |
createOAuthFlows()
This method creates a new
OAuthFlows instance. |
static <T extends Constructible> |
createObject(java.lang.Class<T> clazz)
This method creates a new instance of a constructible element from the OpenAPI model tree.
|
static OpenAPI |
createOpenAPI()
This method creates a new
OpenAPI instance. |
static Operation |
createOperation()
This method creates a new
Operation instance. |
static Parameter |
createParameter()
This method creates a new
Parameter instance. |
static PathItem |
createPathItem()
This method creates a new
PathItem instance. |
static Paths |
createPaths()
This method creates a new
Paths instance. |
static RequestBody |
createRequestBody()
This method creates a new
RequestBody instance. |
static Schema |
createSchema()
This method creates a new
Schema instance. |
static SecurityRequirement |
createSecurityRequirement()
This method creates a new
SecurityRequirement instance. |
static SecurityScheme |
createSecurityScheme()
This method creates a new
SecurityScheme instance. |
static Server |
createServer()
This method creates a new
Server instance. |
static ServerVariable |
createServerVariable()
This method creates a new
ServerVariable instance. |
static Tag |
createTag()
This method creates a new
Tag instance. |
static XML |
createXML()
This method creates a new
XML instance. |
public static <T extends Constructible> T createObject(java.lang.Class<T> clazz)
OASFactory.createObject(Info.class).title("Airlines").description("Airlines APIs").version("1.0.0");
T
- describes the type parameterclazz
- represents a model which extends the Constructible
interfacejava.lang.NullPointerException
- if the specified class is nulljava.lang.IllegalArgumentException
- if an instance could not be created, most likely, due to an illegal or inappropriate classpublic static Components createComponents()
Components
instance.public static ExternalDocumentation createExternalDocumentation()
ExternalDocumentation
instance.public static OpenAPI createOpenAPI()
OpenAPI
instance.public static Operation createOperation()
Operation
instance.public static PathItem createPathItem()
PathItem
instance.public static Paths createPaths()
Paths
instance.public static Callback createCallback()
Callback
instance.public static Example createExample()
Example
instance.public static Header createHeader()
Header
instance.public static Contact createContact()
Contact
instance.public static Info createInfo()
Info
instance.public static License createLicense()
License
instance.public static Link createLink()
Link
instance.public static Content createContent()
Content
instance.public static Discriminator createDiscriminator()
Discriminator
instance.public static Encoding createEncoding()
Encoding
instance.public static MediaType createMediaType()
MediaType
instance.public static Schema createSchema()
Schema
instance.public static XML createXML()
XML
instance.public static Parameter createParameter()
Parameter
instance.public static RequestBody createRequestBody()
RequestBody
instance.public static APIResponse createAPIResponse()
APIResponse
instance.public static APIResponses createAPIResponses()
APIResponses
instance.public static OAuthFlow createOAuthFlow()
OAuthFlow
instance.public static OAuthFlows createOAuthFlows()
OAuthFlows
instance.public static SecurityRequirement createSecurityRequirement()
SecurityRequirement
instance.public static SecurityScheme createSecurityScheme()
SecurityScheme
instance.public static Server createServer()
Server
instance.public static ServerVariable createServerVariable()
ServerVariable
instance.