getApi method

Future<GetApiResponse> getApi({
  1. required String apiId,
})

Retrieves an Api object.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The Api ID.

Implementation

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