Skip to main content

No project description provided

Project description

JimsPetstoreSdk Python SDK 1.0.0

A Python SDK for JimsPetstoreSdk.

  • API version: 1.0.0
  • SDK version: 1.0.0

Table of Contents

Installation

pip install jims-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 jims_petstore_sdk import JimsPetstoreSdk, Environment

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

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

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 jims_petstore_sdk import JimsPetstoreSdk, Environment
from jims_petstore_sdk.models import Pet

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

request_body = Pet(**{
    "id_": 2,
    "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 jims_petstore_sdk import JimsPetstoreSdk, Environment

sdk = JimsPetstoreSdk(
    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

jims-petstore-sdk-1.0.0.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

jims_petstore_sdk-1.0.0-py3-none-any.whl (25.0 kB view hashes)

Uploaded Python 3

Supported by

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