delete method
Adds a DELETE endpoint with the specified path and optional parameters.
Implementation
SimpleApiBuilder delete(
String path, {
String? name,
String? description,
List<String>? queryParams,
List<String>? pathParams,
List<String>? headerParams,
List<String>? tags,
String? responseType,
}) {
_endpoints.add(EndpointSpec(
name: name ?? _generateName('DELETE', path),
path: path,
method: HttpMethod.delete,
description: description,
queryParams: queryParams ?? [],
pathParams: pathParams ?? _extractPathParams(path),
headerParams: headerParams ?? [],
tags: tags ?? [],
responseType: responseType,
));
return this;
}