(pets)
- create_pets - Create a pet
- list_pets - List all pets
- show_pet_by_id - Info for a specific pet
Create a pet
import test
s = test.Test()
res = s.pets.create_pets()
if res is not None:
# handle response
pass
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
List all pets
import test
from test.models import operations
s = test.Test()
res = s.pets.list_pets(request=operations.ListPetsRequest())
if res.pets is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ListPetsRequest | ✔️ | The request object to use for the request. |
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |
Info for a specific pet
import test
from test.models import operations
s = test.Test()
res = s.pets.show_pet_by_id(request=operations.ShowPetByIDRequest(
pet_id='<value>',
))
if res.pet is not None:
# handle response
pass
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.ShowPetByIDRequest | ✔️ | The request object to use for the request. |
operations.ShowPetByIDResponse
Error Object | Status Code | Content Type |
---|---|---|
errors.SDKError | 4xx-5xx | / |