Class ApiOperationMatch

java.lang.Object
com.atlassian.oai.validator.model.ApiOperationMatch

public class ApiOperationMatch extends Object
After trying to find the best matching ApiOperation this model contains the information if the path is defined, the operation is allowed and if so the ApiOperation itself, too.
  • Field Details

    • MISSING_PATH

      public static ApiOperationMatch MISSING_PATH
      The searched path is not defined in the API definition.
    • NOT_ALLOWED_OPERATION

      public static ApiOperationMatch NOT_ALLOWED_OPERATION
      The searched path is defined in the API definition, but the HTTP method is not allowed.
  • Constructor Details

  • Method Details

    • isPathFound

      public boolean isPathFound()
      Returns:
      if a matching path was found
    • isOperationAllowed

      public boolean isOperationAllowed()
      Returns:
      if the operation is allowed on the matched path
    • getApiOperation

      public ApiOperation getApiOperation()
      Returns:
      the ApiOperation on the matched path and operation