public abstract class APIModel extends Object
| Constructor and Description |
|---|
APIModel(String apiName,
String description,
String baseUri,
String apiVersion,
List<APIOperationModel> operations,
List<String> protocols) |
| Modifier and Type | Method and Description |
|---|---|
Optional<APIOperationModel> |
findOperation(String operationId)
Finds an operation by operationId.
|
Optional<APIOperationModel> |
findOperation(String path,
String method)
Finds an operation by method and path.
|
String |
getApiName() |
String |
getApiVersion() |
String |
getBaseUri() |
String |
getDescription() |
abstract APILocation |
getLocation()
Retrieves the location in the API Spec this element was parsed from.
|
List<APIOperationModel> |
getOperationsModel() |
List<String> |
getProtocols() |
public String getApiName()
public String getDescription()
public String getBaseUri()
public String getApiVersion()
public List<APIOperationModel> getOperationsModel()
public abstract APILocation getLocation()
public Optional<APIOperationModel> findOperation(String operationId)
operationId - the operationIdAPIOperationModel with the given operationIdpublic Optional<APIOperationModel> findOperation(String path, String method)
path - an endpoint pathmethod - an HTTP methodAPIOperationModel with the given method and pathCopyright © 2023. All rights reserved.