Open mprsuren opened 3 weeks ago
Thanks for helping us develop the SDK and add new features. However, You should make it in different way. A good example could be: Example1 or if you don't want to add return types, you can just add a return JSON hint. Example1 after that, you can use the new API. You can also see: https://github.com/cisco-open/cisco-catalyst-wan-sdk/blob/main/CONTRIBUTING.md
Some example about endpoints:
# file: catalystwan/endpoints/monitoring/device_details.py
class MonitoringDeviceDetails(APIEndpoints):
# ...
@get("/dataservice/device/bfd/summary")
def device_bfd_summary(sefl, deviceIP: str) -> JSON:
...
# ...
# file: catalystwan/endpoints/monitoring/status.py
class MonitoringStatus(APIEndpoints):
# ...
@get("/statistics/approute/tunnels/health/loss_percentage")
def approute_trans_summary(self) -> JSON:
...
# ...
Pull Request summary:
Adding new api call support
Description of changes:
Adding new change for below get api call,
Checklist:
Unit Test: 1st api
Unit Test: 2nd api
Unit Test: 3rd api
Unit Test: 4th api