@@ -1944,6 +1944,7 @@ Makes a custom API request to the controller.
|
||||
- `$path` (string): API endpoint path
|
||||
- `$method` (string): HTTP method: 'GET', 'POST', 'PUT', 'DELETE', 'PATCH' (default: 'GET')
|
||||
- `$payload` (mixed): Request payload for POST/PUT/PATCH requests
|
||||
- `$prefix_path` (bool): Whether to prefix the path with the controller API base URL (default: true)
|
||||
- `$return` (string): Return type: 'array', 'json', 'boolean' (default: 'array')
|
||||
|
||||
**Returns:** mixed - Response in the specified format
|
||||
|
||||
5
TODO.md
5
TODO.md
@@ -1,10 +1,15 @@
|
||||
# Things todo
|
||||
|
||||
## Next commit
|
||||
- API client class v2.0.11
|
||||
- merged PR #284, contributed by @Jacobtims
|
||||
|
||||
## Old commits
|
||||
- API client class v2.0.9
|
||||
- merged PR #282 to handle deprecated `curl_close()` function in PHP >8.5, contributed by @dream-rhythm
|
||||
|
||||
|
||||
|
||||
## Routes to add
|
||||
- [x] /v2/api/site/mdfwaanp/models
|
||||
-
|
||||
@@ -36,7 +36,7 @@ use UniFi_API\Exceptions\NotAUnifiOsConsoleException;
|
||||
class Client
|
||||
{
|
||||
/** Constants. */
|
||||
const CLASS_VERSION = '2.0.10';
|
||||
const CLASS_VERSION = '2.0.11';
|
||||
const CURL_METHODS_ALLOWED = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'];
|
||||
const DEFAULT_CURL_METHOD = 'GET';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user