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 hashes)
Built Distribution
Close
Hashes for jims_petstore_sdk-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d875ccade1634d0420430bb474df37d0cdc67b1eec321f09b4a6ffc88ba9936e |
|
MD5 | 767a207e8ee0966c1986c33162b9eee5 |
|
BLAKE2b-256 | bf5b9e118f6360a13ad3924180f0c7b9840936e7cdba10a6bbb310a06758248f |