aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtRand <arand@soe.ucsc.edu>2018-02-13 13:34:51 -0800
committerArtRand <arand@soe.ucsc.edu>2018-02-13 13:34:51 -0800
commit415eddabe9b71847837a7e7474cd608b19122c66 (patch)
treeb9343abb9aa4efffaec0f45220773f824f99dedc
parentce529a64558462ee10b59df7880cb60f64713e78 (diff)
downloaddriver-core-415eddabe9b71847837a7e7474cd608b19122c66.tar.gz
driver-core-415eddabe9b71847837a7e7474cd608b19122c66.tar.bz2
driver-core-415eddabe9b71847837a7e7474cd608b19122c66.zip
delete with query
-rw-r--r--src/main/scala/xyz/driver/core/rest/RestService.scala4
1 files 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))