Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/advith-petstore-golang
A go SDK for accessing the advith-petstore-golang API.
https://github.com/speakeasy-sdks/advith-petstore-golang
Last synced: 1 day ago
JSON representation
A go SDK for accessing the advith-petstore-golang API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/advith-petstore-golang
- Owner: speakeasy-sdks
- Created: 2023-02-24T21:09:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:13:02.000Z (7 months ago)
- Last Synced: 2024-06-21T21:05:30.163Z (5 months ago)
- Size: 111 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github.com/speakeasy-sdks/advith-petstore-golang
## SDK Installation
```bash
go get github.com/speakeasy-sdks/advith-petstore-golang
```## SDK Example Usage
```go
package mainimport(
"context"
"log"
"github.com/speakeasy-sdks/advith-petstore-golang"
)func main() {
s := sdk.New()ctx := context.Background()
res, err := s.Pets.CreatePets(ctx)
if err != nil {
log.Fatal(err)
}if res.StatusCode == http.StatusOK {
// handle response
}
}
```## Available Resources and Operations
### [Pets](docs/pets/README.md)
* [CreatePets](docs/pets/README.md#createpets) - Create a pet
* [ListPets](docs/pets/README.md#listpets) - List all pets
* [ShowPetByID](docs/pets/README.md#showpetbyid) - Info for a specific pet### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)