public abstract class APIOperationModel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected APIDocumentationModel |
apiDocumentationModel |
protected List<String> |
baseUris |
protected String |
description |
protected List<APIParameterModel> |
headersModel |
protected String |
httpMethod |
protected List<APITypeModel> |
inputMetadataModel |
protected String |
name |
protected String |
operationId |
protected List<APITypeModel> |
outputMetadataModel |
protected String |
path |
protected List<APIParameterModel> |
queryParamsModel |
protected List<APISecuritySchemeModel> |
securitySchemesModel |
protected String |
summary |
protected List<APIParameterModel> |
uriParamsModel |
| Constructor and Description |
|---|
APIOperationModel() |
| Modifier and Type | Method and Description |
|---|---|
APIDocumentationModel |
getAPIDocumentationModel() |
List<String> |
getBaseUris() |
String |
getDescription() |
List<APIParameterModel> |
getHeadersModel() |
String |
getHttpMethod() |
List<APITypeModel> |
getInputMetadataModel() |
abstract APILocation |
getLocation()
Retrieves the location in the API Spec this element was parsed from.
|
String |
getName() |
String |
getOperationId() |
List<APITypeModel> |
getOutputMetadataModel() |
Optional<APIParameterModel> |
getParameter(APIParameterType apiParameterType,
String name)
Retrieves a parameter by its name and type.
|
String |
getPath() |
List<APIParameterModel> |
getQueryParamsModel() |
List<APISecuritySchemeModel> |
getSecuritySchemesModel() |
String |
getSummary() |
List<APIParameterModel> |
getUriParamsModel() |
protected <T> List<T> |
selectSecurityRequirements(List<T> operationSchemes,
List<T> endPointSchemes,
List<T> globalSchemes) |
protected String operationId
protected String name
protected String description
protected String summary
protected String path
protected String httpMethod
protected List<APIParameterModel> uriParamsModel
protected List<APIParameterModel> queryParamsModel
protected List<APIParameterModel> headersModel
protected List<APITypeModel> inputMetadataModel
protected List<APITypeModel> outputMetadataModel
protected List<APISecuritySchemeModel> securitySchemesModel
protected APIDocumentationModel apiDocumentationModel
public String getOperationId()
public String getName()
public String getDescription()
public String getSummary()
public String getPath()
public String getHttpMethod()
public List<APIParameterModel> getUriParamsModel()
public List<APIParameterModel> getQueryParamsModel()
public List<APIParameterModel> getHeadersModel()
public List<APITypeModel> getInputMetadataModel()
public List<APITypeModel> getOutputMetadataModel()
public List<APISecuritySchemeModel> getSecuritySchemesModel()
public APIDocumentationModel getAPIDocumentationModel()
protected <T> List<T> selectSecurityRequirements(List<T> operationSchemes, List<T> endPointSchemes, List<T> globalSchemes)
public Optional<APIParameterModel> getParameter(APIParameterType apiParameterType, String name)
Different parameter types have different case sensitivity (see ComparisonUtil.externalNameParamsComparison()).
apiParameterType - the type of the parameter, e.g. header, query, uri (i.e. path), body, etc.name - the name to look forpublic abstract APILocation getLocation()
Copyright © 2023. All rights reserved.