-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add TenantIdentity / DeviceDetails API #100
Conversation
PR Summary
|
PR Description updated to latest commit (439c6d0)
|
PR Review(Review updated until commit 2248902)
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
/reflect_and_review |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Questions to better understand the PR:
Please respond to the questions above in the following format:
|
/answer
|
Persistent review updated to latest commit 2248902 |
User description
What changes do you are proposing?
add TenantIdentity / DeviceDetails API
How did you test these changes?
manually
Closing issues
Type
enhancement
Description
GET_TENANT_IDENTITY_URL
for fetching tenant identity by device ID.get_device_details
andget_device_details_by_code
indata.py
to interact with the new API endpoint.iec_client.py
with methods to fetch device details by device ID and device code, enhancing the client's functionality.DeviceDetails
andDeviceIdentity
indevice_identity.py
to represent the device details data structure, along with a decoder for API response handling.Changes walkthrough
const.py
Add Tenant Identity API Endpoint Constant
iec_api/const.py
GET_TENANT_IDENTITY_URL
constant for the Tenant/Identify APIendpoint.
data.py
Implement Device Details Fetching Functions
iec_api/data.py
GET_TENANT_IDENTITY_URL
andDeviceDetails
model.get_device_details
andget_device_details_by_code
asyncfunctions to fetch device details.
iec_client.py
Extend IEC Client with Device Details Methods
iec_api/iec_client.py
DeviceDetails
model.get_device_details_by_device_id
andget_device_details_by_device_id_and_code
methods to the client.device_identity.py
Define Device Identity Models and Decoder
iec_api/models/device_identity.py
DeviceDetails
andDeviceIdentity
data classes for deviceidentity information.