deleteRestApi method

Future<void> deleteRestApi({
  1. required String restApiId,
})

Deletes the specified API.

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.

Parameter restApiId : Required The string identifier of the associated RestApi.

Implementation

Future<void> deleteRestApi({
  required String restApiId,
}) async {
  ArgumentError.checkNotNull(restApiId, 'restApiId');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/restapis/${Uri.encodeComponent(restApiId)}',
    exceptionFnMap: _exceptionFns,
  );
}