Class OperationReader
java.lang.Object
io.smallrye.openapi.runtime.io.operation.OperationReader
Reading the Operation from annotation or json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.jboss.jandex.AnnotationInstancegetOperationAnnotation(org.jboss.jandex.MethodInfo method) static booleanoperationIsHidden(org.jboss.jandex.MethodInfo method) static org.eclipse.microprofile.openapi.models.OperationreadOperation(com.fasterxml.jackson.databind.JsonNode node) Reads aOperationOpenAPI node.static org.eclipse.microprofile.openapi.models.OperationreadOperation(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.MethodInfo methodInfo) Reads a single Operation annotation.
-
Method Details
-
readOperation
public static org.eclipse.microprofile.openapi.models.Operation readOperation(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotationInstance, org.jboss.jandex.MethodInfo methodInfo) Reads a single Operation annotation.- Parameters:
context- the scanning contextmethodInfo- the method- Returns:
- Operation model
-
readOperation
public static org.eclipse.microprofile.openapi.models.Operation readOperation(com.fasterxml.jackson.databind.JsonNode node) Reads aOperationOpenAPI node.- Parameters:
node- json object- Returns:
- Operation model
-
operationIsHidden
public static boolean operationIsHidden(org.jboss.jandex.MethodInfo method) -
getOperationAnnotation
public static org.jboss.jandex.AnnotationInstance getOperationAnnotation(org.jboss.jandex.MethodInfo method)
-