Skip to content

Latest commit

 

History

History
executable file
·
100 lines (57 loc) · 3.09 KB

README.md

File metadata and controls

executable file
·
100 lines (57 loc) · 3.09 KB

pets

Available Operations

create_pets

Create a pet

Example Usage

import petstore


s = petstore.Petstore()


res = s.pets.create_pets()

if res.status_code == 200:
    # handle response

Response

operations.CreatePetsResponse

list_pets

List all pets

Example Usage

import petstore
from petstore.models import operations

s = petstore.Petstore()

req = operations.ListPetsRequest(
    limit=548814,
)

res = s.pets.list_pets(req)

if res.pets is not None:
    # handle response

Parameters

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

Response

operations.ListPetsResponse

show_pet_by_id

Info for a specific pet

Example Usage

import petstore
from petstore.models import operations

s = petstore.Petstore()

req = operations.ShowPetByIDRequest(
    pet_id='provident',
)

res = s.pets.show_pet_by_id(req)

if res.pet is not None:
    # handle response

Parameters

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

Response

operations.ShowPetByIDResponse