diff --git a/src/main/kotlin/com/hrv/mart/apicall/APICaller.kt b/src/main/kotlin/com/hrv/mart/apicall/APICaller.kt index ae869a6..58b3046 100644 --- a/src/main/kotlin/com/hrv/mart/apicall/APICaller.kt +++ b/src/main/kotlin/com/hrv/mart/apicall/APICaller.kt @@ -40,4 +40,11 @@ class APICaller( .retrieve() .bodyToMono(responseClassType) } + fun deleteData(path: String, classType: Class): Mono { + val webClient = webClientBuilder.baseUrl(path) + .build() + return webClient.delete() + .retrieve() + .bodyToMono(classType) + } } \ No newline at end of file