22
33<!-- x-release-please-start-version -->
44
5- [ ![ 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.28 )
6- [ ![ javadoc] ( https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.28 /javadoc.svg )] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.28 )
5+ [ ![ 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.29 )
6+ [ ![ javadoc] ( https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.29 /javadoc.svg )] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.29 )
77
88<!-- x-release-please-end -->
99
@@ -15,7 +15,7 @@ It is generated with [Stainless](https://www.stainless.com/).
1515
1616<!-- x-release-please-start-version -->
1717
18- The REST API documentation can be found on [ developer.onebusaway.org] ( https://developer.onebusaway.org ) . Javadocs are available on [ javadoc.io] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.28 ) .
18+ The REST API documentation can be found on [ developer.onebusaway.org] ( https://developer.onebusaway.org ) . Javadocs are available on [ javadoc.io] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.29 ) .
1919
2020<!-- x-release-please-end -->
2121
@@ -26,7 +26,7 @@ The REST API documentation can be found on [developer.onebusaway.org](https://de
2626### Gradle
2727
2828``` kotlin
29- implementation(" org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.28 " )
29+ implementation(" org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.29 " )
3030```
3131
3232### Maven
@@ -35,7 +35,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.28")
3535<dependency >
3636 <groupId >org.onebusaway</groupId >
3737 <artifactId >onebusaway-sdk-java</artifactId >
38- <version >0.1.0-alpha.28 </version >
38+ <version >0.1.0-alpha.29 </version >
3939</dependency >
4040```
4141
@@ -53,21 +53,23 @@ import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient;
5353import org.onebusaway.models.currenttime.CurrentTimeRetrieveParams ;
5454import org.onebusaway.models.currenttime.CurrentTimeRetrieveResponse ;
5555
56- // Configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
56+ // Configures using the `onebusawaysdk.onebusawayApiKey` and `onebusawaysdk.baseUrl` system properties
57+ // Or configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
5758OnebusawaySdkClient client = OnebusawaySdkOkHttpClient . fromEnv();
5859
5960CurrentTimeRetrieveResponse currentTime = client. currentTime(). retrieve();
6061```
6162
6263## Client configuration
6364
64- Configure the client using environment variables:
65+ Configure the client using system properties or environment variables:
6566
6667``` java
6768import org.onebusaway.client.OnebusawaySdkClient ;
6869import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient ;
6970
70- // Configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
71+ // Configures using the `onebusawaysdk.onebusawayApiKey` and `onebusawaysdk.baseUrl` system properties
72+ // Or configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
7173OnebusawaySdkClient client = OnebusawaySdkOkHttpClient . fromEnv();
7274```
7375
@@ -89,18 +91,21 @@ import org.onebusaway.client.OnebusawaySdkClient;
8991import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient ;
9092
9193OnebusawaySdkClient client = OnebusawaySdkOkHttpClient . builder()
92- // Configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
94+ // Configures using the `onebusawaysdk.onebusawayApiKey` and `onebusawaysdk.baseUrl` system properties
95+ Or configures using the `ONEBUSAWAY_API_KEY ` and `ONEBUSAWAY_SDK_BASE_URL ` environment variables
9396 .fromEnv()
9497 .apiKey(" My API Key" )
9598 .build();
9699```
97100
98101See this table for the available options:
99102
100- | Setter | Environment variable | Required | Default value |
101- | --------- | ------------------------- | -------- | ----------------------------------------- |
102- | ` apiKey ` | ` ONEBUSAWAY_API_KEY ` | true | - |
103- | ` baseUrl ` | ` ONEBUSAWAY_SDK_BASE_URL ` | true | ` "https://api.pugetsound.onebusaway.org" ` |
103+ | Setter | System property | Environment variable | Required | Default value |
104+ | --------- | -------------------------------- | ------------------------- | -------- | ----------------------------------------- |
105+ | ` apiKey ` | ` onebusawaysdk.onebusawayApiKey ` | ` ONEBUSAWAY_API_KEY ` | true | - |
106+ | ` baseUrl ` | ` onebusawaysdk.baseUrl ` | ` ONEBUSAWAY_SDK_BASE_URL ` | true | ` "https://api.pugetsound.onebusaway.org" ` |
107+
108+ System properties take precedence over environment variables.
104109
105110> [ !TIP]
106111> Don't create more than one client in the same application. Each client has a connection pool and
@@ -146,7 +151,8 @@ import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClient;
146151import org.onebusaway.models.currenttime.CurrentTimeRetrieveParams ;
147152import org.onebusaway.models.currenttime.CurrentTimeRetrieveResponse ;
148153
149- // Configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
154+ // Configures using the `onebusawaysdk.onebusawayApiKey` and `onebusawaysdk.baseUrl` system properties
155+ // Or configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
150156OnebusawaySdkClient client = OnebusawaySdkOkHttpClient . fromEnv();
151157
152158CompletableFuture<CurrentTimeRetrieveResponse > currentTime = client. async(). currentTime(). retrieve();
@@ -161,7 +167,8 @@ import org.onebusaway.client.okhttp.OnebusawaySdkOkHttpClientAsync;
161167import org.onebusaway.models.currenttime.CurrentTimeRetrieveParams ;
162168import org.onebusaway.models.currenttime.CurrentTimeRetrieveResponse ;
163169
164- // Configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
170+ // Configures using the `onebusawaysdk.onebusawayApiKey` and `onebusawaysdk.baseUrl` system properties
171+ // Or configures using the `ONEBUSAWAY_API_KEY` and `ONEBUSAWAY_SDK_BASE_URL` environment variables
165172OnebusawaySdkClientAsync client = OnebusawaySdkOkHttpClientAsync . fromEnv();
166173
167174CompletableFuture<CurrentTimeRetrieveResponse > currentTime = client. currentTime(). retrieve();
0 commit comments