You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81-2Lines changed: 81 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ and standard method from web, mobile and desktop applications.
34
34
*[Available Resources and Operations](#available-resources-and-operations)
35
35
*[Error Handling](#error-handling)
36
36
*[Authentication](#authentication-1)
37
+
*[Server Selection](#server-selection)
37
38
*[Custom HTTP Client](#custom-http-client)
38
39
*[Debugging](#debugging)
39
40
*[Jackson Configuration](#jackson-configuration)
@@ -54,15 +55,15 @@ The samples below show how a published SDK artifact is used:
54
55
55
56
Gradle:
56
57
```groovy
57
-
implementation 'com.formance:formance-sdk:9.0.0'
58
+
implementation 'com.formance:formance-sdk:9.1.0'
58
59
```
59
60
60
61
Maven:
61
62
```xml
62
63
<dependency>
63
64
<groupId>com.formance</groupId>
64
65
<artifactId>formance-sdk</artifactId>
65
-
<version>9.0.0</version>
66
+
<version>9.1.0</version>
66
67
</dependency>
67
68
```
68
69
@@ -583,6 +584,84 @@ public class Application {
583
584
```
584
585
<!-- End Authentication [security] -->
585
586
587
+
<!-- Start Server Selection [server] -->
588
+
## Server Selection
589
+
590
+
### Select Server by Index
591
+
592
+
You can override the default server globally using the `.serverIndex(int serverIdx)` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|`environment`|`environment(ServerEnvironment environment)`| - `"eu.sandbox"`<br/>- `"eu-west-1"`<br/>- `"us-east-1"`|`"eu.sandbox"`| The environment name. Defaults to the production environment. |
604
+
|`organization`|`organization(String organization)`| java.lang.String |`"orgID-stackID"`| The organization name. Defaults to a generic organization. |
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
0 commit comments