Interface CtxApi
- All Known Implementing Classes:
ImmutableCtxApi
@JStache(path="api")
@Immutable
public interface CtxApi
Context passed to Mustache when compiling an api.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordExternal documentation reference.static final recordA reference to an operation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the optional application description.appName()Returns the application name.static ImmutableCtxApi.Builderbuilder()Returns a builder for this type.Returns the class name.Returns the common REST path for all operations in this API class.Returns a list of external documentation references.Returns the name of the Generated annotation class.Returns the optional generation date.Returns the name of the generator.Returns the imports needed for this API class.Returns the optional information email.madaApi()Returns additional custom template data for the api.Returns the operation contexts in this API class.Returns the package name.Returns the return type information for containers. This is wrong..version()Returns the application version.
-
Method Details
-
builder
Returns a builder for this type.- Returns:
- a builder for this type
-
appName
-
version
-
appDescription
-
infoEmail
-
externalDocs
List<CtxApi.CtxOperationExternalDoc> externalDocs()Returns a list of external documentation references.- Returns:
- a list of external documentation references
-
returnContainer
-
getImports
-
operations
List<CtxApi.CtxOperationRef> operations()Returns the operation contexts in this API class.- Returns:
- the operation contexts in this API class
-
packageName
-
classname
-
generatedAnnotationClass
String generatedAnnotationClass()Returns the name of the Generated annotation class.- Returns:
- the name of the Generated annotation class
-
generatorClass
-
generatedDate
-
commonPath
String commonPath()Returns the common REST path for all operations in this API class.- Returns:
- the common REST path for all operations in this API class
-
madaApi
CtxApiExt madaApi()Returns additional custom template data for the api.- Returns:
- additional custom template data for the api
-