Skip to content

Latest commit

 

History

History
111 lines (69 loc) · 3.57 KB

README.md

File metadata and controls

111 lines (69 loc) · 3.57 KB

Pets

(pets)

Available Operations

create_pets

Create a pet

Example Usage

import test

s = test.Test()

res = s.pets.create_pets()

if res is not None:
    # handle response
    pass

Response

operations.CreatePetsResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

list_pets

List all pets

Example Usage

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

Parameters

Parameter Type Required Description
request operations.ListPetsRequest ✔️ The request object to use for the request.

Response

operations.ListPetsResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /

show_pet_by_id

Info for a specific pet

Example Usage

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

Parameters

Parameter Type Required Description
request operations.ShowPetByIDRequest ✔️ The request object to use for the request.

Response

operations.ShowPetByIDResponse

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /