deleteRoute method
Deletes a Route.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Parameter routeId
:
The route ID.
Implementation
Future<void> deleteRoute({
required String apiId,
required String routeId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(routeId, 'routeId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/routes/${Uri.encodeComponent(routeId)}',
exceptionFnMap: _exceptionFns,
);
}