getRouteResponse method

Future<GetRouteResponseResponse> getRouteResponse({
  1. required String apiId,
  2. required String routeId,
  3. required String routeResponseId,
})

Gets a RouteResponse.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter routeId : The route ID.

Parameter routeResponseId : The route response ID.

Implementation

Future<GetRouteResponseResponse> getRouteResponse({
  required String apiId,
  required String routeId,
  required String routeResponseId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(routeId, 'routeId');
  ArgumentError.checkNotNull(routeResponseId, 'routeResponseId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/routes/${Uri.encodeComponent(routeId)}/routeresponses/${Uri.encodeComponent(routeResponseId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetRouteResponseResponse.fromJson(response);
}