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)
Metadata
Release files for jims-petstore-sdk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jims-petstore-sdk-1.0.0.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jims_petstore_sdk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.8 kB
Release files / jims-petstore-sdk-1.0.0.tar.gz
| Download URL | jims-petstore-sdk-1.0.0.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c89e4ddeb04dffe2f70b708eec006511ca5367ce52612fa0fbcbb372d0a78093
|
|
BLAKE2b-256 checksum How to use checksums |
ebe4394fa886c60bfaf034ca04ee484990e850a20e9a27393aa89e11703f9342
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / jims_petstore_sdk-1.0.0-py3-none-any.whl
| Download URL | jims_petstore_sdk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d875ccade1634d0420430bb474df37d0cdc67b1eec321f09b4a6ffc88ba9936e
|
|
BLAKE2b-256 checksum How to use checksums |
bf5b9e118f6360a13ad3924180f0c7b9840936e7cdba10a6bbb310a06758248f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|