Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/petstore-test-java
A java SDK for accessing the petstore API.
https://github.com/speakeasy-sdks/petstore-test-java
Last synced: 1 day ago
JSON representation
A java SDK for accessing the petstore API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/petstore-test-java
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-09-11T09:59:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:45:23.000Z (7 months ago)
- Last Synced: 2024-04-28T05:14:49.800Z (6 months ago)
- Language: Java
- Size: 88.9 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# petstore
## SDK Installation
### Gradle
```groovy
implementation 'com.petstore.petstore:petstore:0.1.0'
```## SDK Example Usage
```java
package hello.world;import com.petstore.petstore.Petstore;
import com.petstore.petstore.models.operations.CreatePetsResponse;public class Application {
public static void main(String[] args) {
try {
Petstore sdk = Petstore.builder()
.build();CreatePetsResponse res = sdk.pets.createPets();
if (res.statusCode == 200) {
// handle response
}
} catch (Exception e) {
// handle exception
}
}
}
```## Available Resources and Operations
### [pets](docs/sdks/pets/README.md)
* [createPets](docs/sdks/pets/README.md#createpets) - Create a pet
* [listPets](docs/sdks/pets/README.md#listpets) - List all pets
* [showPetById](docs/sdks/pets/README.md#showpetbyid) - Info for a specific pet### 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)