deleteRouteResponse method

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

Deletes 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<void> deleteRouteResponse({
  required String apiId,
  required String routeId,
  required String routeResponseId,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(routeId, 'routeId');
  ArgumentError.checkNotNull(routeResponseId, 'routeResponseId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/routes/${Uri.encodeComponent(routeId)}/routeresponses/${Uri.encodeComponent(routeResponseId)}',
    exceptionFnMap: _exceptionFns,
  );
}