getRouteResponses method
Gets the RouteResponses for a Route.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter apiId :
The API identifier.
Parameter routeId :
The route ID.
Parameter maxResults :
The maximum number of elements to be returned for this resource.
Parameter nextToken :
The next page of elements from this collection. Not valid for the last
element of the collection.
Implementation
Future<GetRouteResponsesResponse> getRouteResponses({
required String apiId,
required String routeId,
String? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/routes/${Uri.encodeComponent(routeId)}/routeresponses',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetRouteResponsesResponse.fromJson(response);
}