Package org.openl.rules.project.openapi
Class OpenApiGenerator.Builder
- java.lang.Object
-
- org.openl.rules.project.openapi.OpenApiGenerator.Builder
-
- Enclosing class:
- OpenApiGenerator
public static class OpenApiGenerator.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenApiGeneratorgenerator()Creates new instance ofOpenApiGeneratorOpenApiGenerator.BuilderwithDefaultProvideRuntimeContext(boolean provideRuntimeContext)If runtime context must be included to OpenAPI schema or not by default.OpenApiGenerator.BuilderwithDefaultProvideVariations(boolean provideVariations)If variations endpoints must be included to OpenAPI schema or not by default.
-
-
-
Method Detail
-
withDefaultProvideRuntimeContext
public OpenApiGenerator.Builder withDefaultProvideRuntimeContext(boolean provideRuntimeContext)
If runtime context must be included to OpenAPI schema or not by default. Takes effect only ifisProvideRuntimeContextis not provided in rules-deploy.xml- Parameters:
provideRuntimeContext- include runtime context to OpenAPI or not- Returns:
- current builder instance
-
withDefaultProvideVariations
public OpenApiGenerator.Builder withDefaultProvideVariations(boolean provideVariations)
If variations endpoints must be included to OpenAPI schema or not by default. Takes effect only ifisProvideVariationsis not provided in rules-deploy.xml- Parameters:
provideVariations- include variations endpoints to OpenAPI or not- Returns:
- current builder instance
-
generator
public OpenApiGenerator generator() throws org.openl.rules.project.instantiation.RulesInstantiationException
Creates new instance ofOpenApiGenerator- Returns:
- new instance of
OpenApiGenerator - Throws:
org.openl.rules.project.instantiation.RulesInstantiationException- in case of compilation errors
-
-