getApiCache method

Future<GetApiCacheResponse> getApiCache({
  1. required String apiId,
})

Retrieves an ApiCache object.

May throw BadRequestException. May throw ConcurrentModificationException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The API ID.

Implementation

Future<GetApiCacheResponse> getApiCache({
  required String apiId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/apis/${Uri.encodeComponent(apiId)}/ApiCaches',
    exceptionFnMap: _exceptionFns,
  );
  return GetApiCacheResponse.fromJson(response);
}