feat: make error handling more verbose and collect more error information from API errors, support API V2 error format (#8)

feat: make error handling more verbose and collect more error information from Unifi Controller, support API V2 error format
This commit is contained in:
Mateusz Filipowicz
2025-02-10 03:03:56 +01:00
committed by GitHub
parent 53bb1a13b9
commit 7f5968314d
5 changed files with 367 additions and 83 deletions

View File

@@ -177,7 +177,7 @@ user, err := c.CreateUser(ctx, "site-name", &unifi.User{
## Plans
- [ ] Increase API coverage, or modify code generation to rely on the official UniFi Controller API specifications
- [ ] Improve error handling (currently only basic error handling is implemented and some of the errors are swallowed)
- [x] Improve error handling (currently only basic error handling is implemented and error details are not propagated)
- [x] Improve client code for better usability
- [x] Support API Key authentication
- [ ] Generate client code for currently generated API structures, for use within or outside the Terraform provider