Skip to main content

No project description provided

Project description

MilanPetstoreSdk Python SDK 1.0.0

A Python SDK for MilanPetstoreSdk.

  • API version: 1.0.0
  • SDK version: 1.0.0

Table of Contents

Installation

pip install milan-petstore-sdk

Services

A list of all SDK services. Click on the service name to access its corresponding service methods.

Service
PetsService

PetsService

A list of all methods in the PetsService service. Click on the method name to view detailed information about that method.

Methods Description
list_pets
create_pets
show_pet_by_id

list_pets

  • HTTP Method: GET
  • Endpoint: /pets

Parameters

Name Type Required Description
limit int list_pets

Return Type

List[Pet]

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

result = sdk.pets.list_pets(limit=85)

print(result)

create_pets

  • HTTP Method: POST
  • Endpoint: /pets

Parameters

Name Type Required Description
request_body Pet The request body.

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment
from milan_petstore_sdk.models import Pet

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

request_body = Pet(**{
    "id_": 8,
    "name": "name",
    "tag": "tag"
})

result = sdk.pets.create_pets(request_body=request_body)

print(result)

show_pet_by_id

  • HTTP Method: GET
  • Endpoint: /pets/{petId}

Parameters

Name Type Required Description
petId str show_pet_by_id

Return Type

Pet

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

result = sdk.pets.show_pet_by_id(pet_id="petId")

print(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

milan-petstore-sdk-1.0.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

milan_petstore_sdk-1.0.0-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file milan-petstore-sdk-1.0.0.tar.gz.

File metadata

  • Download URL: milan-petstore-sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for milan-petstore-sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 179f716a31d741dd9db1f922e143ef56363b8125d331e05cf021bead1cadd1ba
MD5 bf7a57ef1db5820fc65231a0bf7f1df5
BLAKE2b-256 44879cd82329ea4043a38d151f7233a78c0ffbe62b8342dbeb8e950aa97546f4

See more details on using hashes here.

File details

Details for the file milan_petstore_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for milan_petstore_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c065df625dd0e6dab5f9ed029998e483deb52512ca67cd9911b88c333827cfc9
MD5 28123bd972789d4027eff17f6bdd1b00
BLAKE2b-256 a3ae5c7fab0463ab1028c503c489ff0e6b62d53fe37bf53cf8a8afe8c0744579

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page