Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/multi-auth-java
A java SDK for accessing the MultipleAuthTester API.
https://github.com/speakeasy-sdks/multi-auth-java
Last synced: 2 days ago
JSON representation
A java SDK for accessing the MultipleAuthTester API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/multi-auth-java
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-09-14T06:58:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:45:37.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:46.942Z (6 months ago)
- Language: Java
- Size: 143 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MultipleAuthTester
## SDK Installation
### Gradle
```groovy
implementation 'com.example.MultipleAuthTester:MultipleAuthTester:0.12.2'
```## SDK Example Usage
### Example
```java
package hello.world;import com.example.MultipleAuthTester.MultipleAuthTester;
import com.example.MultipleAuthTester.models.operations.GetCarsByCNICRequest;
import com.example.MultipleAuthTester.models.operations.GetCarsByCNICResponse;
import com.example.MultipleAuthTester.models.shared.Security;public class Application {
public static void main(String[] args) {
try {
MultipleAuthTester sdk = MultipleAuthTester.builder()
.setSecurity(new Security(
"",
new SchemeHTTPBasic(
"",
"")){{
apiKey = "";
httpBasic = new SchemeHTTPBasic(
"",
""){{
password = "";
username = "";
}};
}})
.build();com.example.MultipleAuthTester.models.operations.GetCarsByCNICRequest req = new GetCarsByCNICRequest(
"");com.example.MultipleAuthTester.models.operations.GetCarsByCNICResponse res = sdk.cars.getCarsByCNIC(req);
if (res.classes != null) {
// handle response
}
} catch (Exception e) {
// handle exception
}
}
}
```## Available Resources and Operations
### [cars](docs/sdks/cars/README.md)
* [getCarsByCNIC](docs/sdks/cars/README.md#getcarsbycnic) - Find cars by CNIC
* [getCarsById](docs/sdks/cars/README.md#getcarsbyid) - Find cars by ID
* [getCarsByName](docs/sdks/cars/README.md#getcarsbyname) - Find cars by Name## Server Selection
## Server Selection
### Select Server by Index
You can override the default server globally using the `setServerIndex` option 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:
| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://development.gigantic-server.com/v1` | None |
| 1 | `https://staging.gigantic-server.com/v1` | None |
| 2 | `https://api.gigantic-server.com/v1` | None |### Override Server URL Per-Client
The default server can also be overridden globally using the `setServerURL` option when initializing the SDK client instance. For example:
### Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.### Contributions
While we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)