Package com.networknt.openapi
Class OpenApiOperation
- java.lang.Object
-
- com.networknt.openapi.OpenApiOperation
-
public class OpenApiOperation 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.
- Author:
- Steve Hu
-
-
Constructor Summary
Constructors Constructor Description OpenApiOperation(NormalisedPath pathString, Path pathObject, String method, Operation operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMethod()OperationgetOperation()PathgetPathObject()NormalisedPathgetPathString()
-
-
-
Constructor Detail
-
OpenApiOperation
public OpenApiOperation(NormalisedPath pathString, Path pathObject, String method, Operation operation)
-
-
Method Detail
-
getPathString
public NormalisedPath getPathString()
- Returns:
- The path the operation is on
-
getPathObject
public Path getPathObject()
- Returns:
- The path object from the OAI specification
-
getMethod
public String getMethod()
- Returns:
- The method the operation is on
-
getOperation
public Operation getOperation()
- Returns:
- The operation object from the OAI specification
-
-