getRestApi method
Lists the RestApi resource in the collection.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
May throw UnauthorizedException.
Parameter restApiId :
The string identifier of the associated RestApi.
Implementation
Future<RestApi> getRestApi({
required String restApiId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/restapis/${Uri.encodeComponent(restApiId)}',
exceptionFnMap: _exceptionFns,
);
return RestApi.fromJson(response);
}