getApi method
Gets an Api resource.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Implementation
Future<GetApiResponse> getApi({
required String apiId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/apis/${Uri.encodeComponent(apiId)}',
exceptionFnMap: _exceptionFns,
);
return GetApiResponse.fromJson(response);
}