No project description provided
Project description
TestSdk Python SDK 6.9.1
A Python SDK for TestSdk.
- API version: 1.0.0
- SDK version: 6.9.1
Table of Contents
Installation
pip install DC-Test-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 test_sdk import TestSdk, Environment
sdk = TestSdk(
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 test_sdk import TestSdk, Environment
from test_sdk.models import Pet
sdk = TestSdk(
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 test_sdk import TestSdk, Environment
sdk = TestSdk(
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
DC-Test-petstore-sdk-6.9.1.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for DC-Test-petstore-sdk-6.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87bc754bf177b7c3a49cd660f37c849a36c01d3e03c10d62b66bc4ac41a336e1 |
|
MD5 | 3b48dfbbbe3c814713e8b3908af2c02f |
|
BLAKE2b-256 | 383df997df9325a91a770758895bd7d08cd0cc47e8424e124da88b53a2359180 |
Close
Hashes for DC_Test_petstore_sdk-6.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39dbfd71f079c639005ba2ea12202b821f4bb792608a0cc1f5820efda3abfda |
|
MD5 | 685a5a9dabc9bd354599725c477e04e2 |
|
BLAKE2b-256 | d380cb8e8e89d6aba9c67eaa140dfbe2c5284d12f7f4e53b6080fd8da8189c1b |