deleteDocumentationPart method
May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException. May throw BadRequestException.
Parameter documentationPartId
:
Required
The identifier of the to-be-deleted documentation part.
Parameter restApiId
:
Required
The string identifier of the associated RestApi.
Implementation
Future<void> deleteDocumentationPart({
required String documentationPartId,
required String restApiId,
}) async {
ArgumentError.checkNotNull(documentationPartId, 'documentationPartId');
ArgumentError.checkNotNull(restApiId, 'restApiId');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/documentation/parts/${Uri.encodeComponent(documentationPartId)}',
exceptionFnMap: _exceptionFns,
);
}