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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file jims-petstore-sdk-1.0.0.tar.gz
.
File metadata
- Download URL: jims-petstore-sdk-1.0.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c89e4ddeb04dffe2f70b708eec006511ca5367ce52612fa0fbcbb372d0a78093 |
|
MD5 | a10acf0e69afb9aa02ba8023e2a51106 |
|
BLAKE2b-256 | ebe4394fa886c60bfaf034ca04ee484990e850a20e9a27393aa89e11703f9342 |
File details
Details for the file jims_petstore_sdk-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: jims_petstore_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d875ccade1634d0420430bb474df37d0cdc67b1eec321f09b4a6ffc88ba9936e |
|
MD5 | 767a207e8ee0966c1986c33162b9eee5 |
|
BLAKE2b-256 | bf5b9e118f6360a13ad3924180f0c7b9840936e7cdba10a6bbb310a06758248f |