diff options
author | Arthur Rand <arand@ucsc.edu> | 2018-02-14 16:42:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 16:42:28 -0800 |
commit | d2f5ae4bbd58da0d2e1688e700d09dc91ed7bde5 (patch) | |
tree | b9343abb9aa4efffaec0f45220773f824f99dedc /src/main/scala | |
parent | ce529a64558462ee10b59df7880cb60f64713e78 (diff) | |
parent | 415eddabe9b71847837a7e7474cd608b19122c66 (diff) | |
download | driver-core-1.8.0.tar.gz driver-core-1.8.0.tar.bz2 driver-core-1.8.0.zip |
Merge pull request #117 from drivergroup/api-1321-add-delete-with-query-rest-methodv1.8.0
[API-1321] add `delete` with query to `RestService`
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/xyz/driver/core/rest/RestService.scala | 4 |
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)) |