-
public final class OpenApiBuilder
-
-
Method Summary
Modifier and Type Method Description final static OpenApiDocumentationdocument()Creates an instance of the OpenApiDocumentation final static OpenApiCrudHandlerDocumentationdocumentCrud()Creates an instance of the OpenApiCrudHandlerDocumentation final static DocumentedHandlerdocumented(OpenApiDocumentation documentation, Function1<Context, Unit> handle)Creates a documented Handler with a lambda final static DocumentedHandlerdocumented(OpenApiDocumentation documentation, Handler handler)Creates a documented Handler final static DocumentedCrudHandlerdocumented(OpenApiCrudHandlerDocumentation documentation, CrudHandler handler)Creates a documented CrudHandler final static <T extends Any> Map<T, Handler>documented(Map<T, OpenApiDocumentation> documentation, Map<T, Handler> handlers)Converts a map of handlers and documentations into a map of documented handlers final static HandlermoveDocumentationFromAnnotationToHandler(Class<?> javaClass, String methodName, Handler handler)Moves the documentation from the annotation to a DocumentedHandler. final static HandlermoveDocumentationFromAnnotationToHandler(Method methodWithAnnotation, Handler handler)Moves the documentation from the annotation to a DocumentedHandler. -
-
Method Detail
-
document
final static OpenApiDocumentation document()
Creates an instance of the OpenApiDocumentation
-
documentCrud
final static OpenApiCrudHandlerDocumentation documentCrud()
Creates an instance of the OpenApiCrudHandlerDocumentation
-
documented
final static DocumentedHandler documented(OpenApiDocumentation documentation, Function1<Context, Unit> handle)
Creates a documented Handler with a lambda
-
documented
final static DocumentedHandler documented(OpenApiDocumentation documentation, Handler handler)
Creates a documented Handler
-
documented
final static DocumentedCrudHandler documented(OpenApiCrudHandlerDocumentation documentation, CrudHandler handler)
Creates a documented CrudHandler
-
documented
final static <T extends Any> Map<T, Handler> documented(Map<T, OpenApiDocumentation> documentation, Map<T, Handler> handlers)
Converts a map of handlers and documentations into a map of documented handlers
-
moveDocumentationFromAnnotationToHandler
final static Handler moveDocumentationFromAnnotationToHandler(Class<?> javaClass, String methodName, Handler handler)
Moves the documentation from the annotation to a DocumentedHandler. If the method is not documented, just returns the handler.
-
moveDocumentationFromAnnotationToHandler
final static Handler moveDocumentationFromAnnotationToHandler(Method methodWithAnnotation, Handler handler)
Moves the documentation from the annotation to a DocumentedHandler. If the method is not documented, just returns the handler.
-
-
-
-