Skip to content

Static Class Client Example

Generate clients with static methods:

typescript
import { Pet } from './gen/clients/Pet'

// Get a pet by ID
const pet = await Pet.getPetById({ petId: 1 })

// Add a new pet
const newPet = await Pet.addPet({
  name: 'Fluffy',
  status: 'available'
})

Released under the MIT License.