Class ApiOperation

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

public class ApiOperation extends Object
A container representing a single API operation.

This includes the path, method and operation components from the OAI spec object. Used as a convenience to hold related information in one place.

  • Constructor Details

  • Method Details

    • getApiPath

      @Nonnull public ApiPath getApiPath()
      Returns:
      The path the operation is on
    • getRequestPath

      @Nonnull public NormalisedPath getRequestPath()
      Returns:
      The normalised path from original request
    • getMethod

      @Nonnull public io.swagger.v3.oas.models.PathItem.HttpMethod getMethod()
      Returns:
      The method the operation is on
    • getOperation

      @Nonnull public io.swagger.v3.oas.models.Operation getOperation()
      Returns:
      The operation object from the OAI specification