diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 3cf71e6..b386bef 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.0-alpha.18"
+ ".": "0.1.0-alpha.19"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a98d28e..ba168a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.1.0-alpha.19 (2024-11-01)
+
+Full Changelog: [v0.1.0-alpha.18...v0.1.0-alpha.19](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.18...v0.1.0-alpha.19)
+
+### Chores
+
+* rebuild project due to codegen change ([#54](https://github.com/OneBusAway/java-sdk/issues/54)) ([d89979d](https://github.com/OneBusAway/java-sdk/commit/d89979d652a3b8100488b21343f6634ec62c769f))
+
## 0.1.0-alpha.18 (2024-11-01)
Full Changelog: [v0.1.0-alpha.17...v0.1.0-alpha.18](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.17...v0.1.0-alpha.18)
diff --git a/README.md b/README.md
index 17a0b91..8be528f 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.18)
+[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.19)
@@ -27,7 +27,7 @@ The REST API documentation can be foundĀ on [developer.onebusaway.org](https://d
```kotlin
-implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.18")
+implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.19")
```
#### Maven
@@ -36,7 +36,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.18")
org.onebusaway
onebusaway-sdk-java
- 0.1.0-alpha.18
+ 0.1.0-alpha.19
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 032211f..da363fd 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
allprojects {
group = "org.onebusaway"
- version = "0.1.0-alpha.18" // x-release-please-version
+ version = "0.1.0-alpha.19" // x-release-please-version
}
diff --git a/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClient.kt b/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClient.kt
index fd30fd4..3b3eb92 100644
--- a/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClient.kt
+++ b/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClient.kt
@@ -52,6 +52,24 @@ class OnebusawaySdkOkHttpClient private constructor() {
fun removeHeader(name: String) = apply { clientOptions.removeHeader(name) }
+ fun queryParams(queryParams: Map>) = apply {
+ clientOptions.queryParams(queryParams)
+ }
+
+ fun putQueryParam(key: String, value: String) = apply {
+ clientOptions.putQueryParam(key, value)
+ }
+
+ fun putQueryParams(key: String, values: Iterable) = apply {
+ clientOptions.putQueryParams(key, values)
+ }
+
+ fun putAllQueryParams(queryParams: Map>) = apply {
+ clientOptions.putAllQueryParams(queryParams)
+ }
+
+ fun removeQueryParam(key: String) = apply { clientOptions.removeQueryParam(key) }
+
fun timeout(timeout: Duration) = apply { this.timeout = timeout }
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
diff --git a/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClientAsync.kt b/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClientAsync.kt
index 1611a81..08a4330 100644
--- a/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClientAsync.kt
+++ b/onebusaway-sdk-java-client-okhttp/src/main/kotlin/org/onebusaway/client/okhttp/OnebusawaySdkOkHttpClientAsync.kt
@@ -52,6 +52,24 @@ class OnebusawaySdkOkHttpClientAsync private constructor() {
fun removeHeader(name: String) = apply { clientOptions.removeHeader(name) }
+ fun queryParams(queryParams: Map>) = apply {
+ clientOptions.queryParams(queryParams)
+ }
+
+ fun putQueryParam(key: String, value: String) = apply {
+ clientOptions.putQueryParam(key, value)
+ }
+
+ fun putQueryParams(key: String, values: Iterable) = apply {
+ clientOptions.putQueryParams(key, values)
+ }
+
+ fun putAllQueryParams(queryParams: Map>) = apply {
+ clientOptions.putAllQueryParams(queryParams)
+ }
+
+ fun removeQueryParam(key: String) = apply { clientOptions.removeQueryParam(key) }
+
fun timeout(timeout: Duration) = apply { this.timeout = timeout }
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
diff --git a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt
index c24bf3b..d741e49 100644
--- a/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt
+++ b/onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt
@@ -90,17 +90,17 @@ private constructor(
putAllQueryParams(queryParams)
}
- fun putQueryParam(name: String, value: String) = apply { queryParams.put(name, value) }
+ fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
- fun putQueryParams(name: String, values: Iterable) = apply {
- queryParams.putAll(name, values)
+ fun putQueryParams(key: String, values: Iterable) = apply {
+ queryParams.putAll(key, values)
}
fun putAllQueryParams(queryParams: Map>) = apply {
queryParams.forEach(::putQueryParams)
}
- fun removeQueryParam(name: String) = apply { queryParams.removeAll(name) }
+ fun removeQueryParam(key: String) = apply { queryParams.removeAll(key) }
fun responseValidation(responseValidation: Boolean) = apply {
this.responseValidation = responseValidation