deleteApi method

Future<void> deleteApi({
  1. required String apiId,
})

Deletes an Api object

May throw AccessDeniedException. May throw BadRequestException. May throw ConcurrentModificationException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The Api ID.

Implementation

Future<void> deleteApi({
  required String apiId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/v2/apis/${Uri.encodeComponent(apiId)}',
    exceptionFnMap: _exceptionFns,
  );
}