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