feat: add Version method to client to provide system version information (#32)

This commit is contained in:
Mateusz Filipowicz
2025-02-19 09:19:20 +01:00
committed by GitHub
parent d3a3d5a342
commit 16f71e7fe9
3 changed files with 21 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ type Client interface {
// Put sends a PUT request to the controller.
Put(ctx context.Context, apiPath string, reqBody interface{}, respBody interface{}) error
// Version returns the version of the UniFi Controller API.
Version() string
// ==== client methods for APGroup resource ====
// CreateAPGroup creates a resource