From 415eddabe9b71847837a7e7474cd608b19122c66 Mon Sep 17 00:00:00 2001 From: ArtRand Date: Tue, 13 Feb 2018 13:34:51 -0800 Subject: delete with query --- src/main/scala/xyz/driver/core/rest/RestService.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/xyz/driver/core/rest/RestService.scala b/src/main/scala/xyz/driver/core/rest/RestService.scala index 3cb66f9..2839c7e 100644 --- a/src/main/scala/xyz/driver/core/rest/RestService.scala +++ b/src/main/scala/xyz/driver/core/rest/RestService.scala @@ -55,8 +55,8 @@ trait RestService extends Service { protected def patchJson(baseUri: Uri, path: String, json: JsValue) = HttpRequest(HttpMethods.PATCH, endpointUri(baseUri, path), entity = jsonEntity(json)) - protected def delete(baseUri: Uri, path: String) = - HttpRequest(HttpMethods.DELETE, endpointUri(baseUri, path)) + protected def delete(baseUri: Uri, path: String, query: Seq[(String, String)] = Seq.empty) = + HttpRequest(HttpMethods.DELETE, endpointUri(baseUri, path, query)) protected def endpointUri(baseUri: Uri, path: String): Uri = baseUri.withPath(Uri.Path(path)) -- cgit v1.2.3