public static boolean matchesOperation(String path, String operation) {
    return matchPathSegments(path, 0, operation, true) >= 0;
  }
This will check if the request path matches the specified operation. This will check that that the first one or
more path segments in the supplied path match the path segments in {@code operation}. For example,
{@code /op} or {@code /op/sub} will match the operation {@code op}.
@param path the path to check.
@param operation the operation name to check the path against.
@return {@code true} if this request path matches the specified operation.
ambry-api/src/main/java/com/github/ambry/rest/RequestPath.java