deleteRestApi method

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

Deletes the specified API.

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

Parameter restApiId : The string identifier of the associated RestApi.

Implementation

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