Add a new pet to the store
Parameters
Returns
Add a new pet to the store
import os
from maxf_docs_dev_7 import MaxfDocsDev7
client = MaxfDocsDev7(
api_key=os.environ.get("PETSTORE_API_KEY"), # This is the default and can be omitted
)
pet = client.pets.create(
name="doggie",
photo_urls=["string"],
)
print(pet.id){
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}Returns Examples
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}