Controller for User model.
More...
|
| getUsers ($request, $response, $args) |
|
| addUser ($request, $response, $args) |
|
| deleteUser ($request, $response, $args) |
|
| getCurrentUser ($request, $response, $args) |
|
| updateUser ($request, $response, $args) |
|
| getTokens ($request, $response, $args) |
|
| __construct ($container) |
|
Controller for User model.
Definition at line 36 of file UserController.php.
◆ addUser()
Fossology\UI\Api\Controllers\UserController::addUser |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Create a user
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
- Exceptions
-
HttpInternalServerErrorException | |
Definition at line 78 of file UserController.php.
◆ deleteUser()
Fossology\UI\Api\Controllers\UserController::deleteUser |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Delete a given user
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
- Exceptions
-
Definition at line 141 of file UserController.php.
◆ getCurrentUser()
Fossology\UI\Api\Controllers\UserController::getCurrentUser |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Get information of current user
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
Definition at line 162 of file UserController.php.
◆ getTokens()
Fossology\UI\Api\Controllers\UserController::getTokens |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Get all the REST API tokens (active | expired)
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
- Exceptions
-
Definition at line 251 of file UserController.php.
◆ getUsers()
Fossology\UI\Api\Controllers\UserController::getUsers |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Get list of Users
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
- Exceptions
-
Definition at line 47 of file UserController.php.
◆ updateUser()
Fossology\UI\Api\Controllers\UserController::updateUser |
( |
|
$request, |
|
|
|
$response, |
|
|
|
$args |
|
) |
| |
Updates the user details
- Parameters
-
ServerRequestInterface | $request | |
ResponseHelper | $response | |
array | $args | |
- Returns
- ResponseHelper
- Exceptions
-
Definition at line 184 of file UserController.php.
The documentation for this class was generated from the following file: