Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 main

import(
"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)