Controler for the user management
More...
|
readonly Dictionary< string, string > | fileExtToConType |
| Dictionary for converting the file extension to connection type More...
|
|
Controler for the user management
Definition at line 32 of file UsersController.cs.
◆ UsersController()
Yottabyte.Server.Controllers.UsersController.UsersController |
( |
DataContext |
context, |
|
|
IConfiguration |
configuration |
|
) |
| |
|
inline |
Constructor for the User Controller
- Parameters
-
context | Data Context |
configuration | Configuration |
Definition at line 60 of file UsersController.cs.
◆ DeleteUser()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.UsersController.DeleteUser |
( |
int |
id | ) |
|
|
inline |
Function for deleting a user
- Parameters
-
- Returns
- Was there a problem
Definition at line 374 of file UsersController.cs.
◆ ExtractClaims()
IEnumerable< Claim > Yottabyte.Server.Controllers.UsersController.ExtractClaims |
( |
string |
jwtToken | ) |
|
|
inline |
Function for extracting the claims from JWT Token
- Parameters
-
- Returns
- The claims
Definition at line 461 of file UsersController.cs.
◆ GetUser() [1/2]
async Task< ActionResult< IEnumerable< UserVM > > > Yottabyte.Server.Controllers.UsersController.GetUser |
( |
| ) |
|
|
inline |
Function to returns all of the users
- Returns
- All of the users
Definition at line 72 of file UsersController.cs.
◆ GetUser() [2/2]
async Task< ActionResult< UserVM > > Yottabyte.Server.Controllers.UsersController.GetUser |
( |
int |
id | ) |
|
|
inline |
Functon to get a user with specific id
- Parameters
-
- Returns
- The user
Definition at line 90 of file UsersController.cs.
◆ LoginUser()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.UsersController.LoginUser |
( |
[FromForm] string |
Email, |
|
|
[FromForm] string |
Password |
|
) |
| |
|
inline |
Function for generating JWT Token for the user
- Parameters
-
Email | Email of the user |
Password | Password of the user |
- Returns
- Was there a problem
Definition at line 320 of file UsersController.cs.
◆ PutUser()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.UsersController.PutUser |
( |
int |
id, |
|
|
[FromForm] UserIM |
userIM |
|
) |
| |
|
inline |
Funcion for updating the user info
- Parameters
-
id | Id of the user |
userIM | New info for the user |
- Returns
- is there a problem
Definition at line 110 of file UsersController.cs.
◆ RegisterUser()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.UsersController.RegisterUser |
( |
[FromForm] UserIM |
userIM | ) |
|
|
inline |
Function for registering of event
- Parameters
-
- Returns
- Was there a problem
Definition at line 229 of file UsersController.cs.
◆ fileExtToConType
readonly Dictionary<string, string> Yottabyte.Server.Controllers.UsersController.fileExtToConType |
Initial value:= new()
{
{ ".png", "image/x-png" },
{ ".jpg", "image/jpeg" },
{ ".svg", "image/svg+xml" },
{ ".gif", "image/gif" }
}
Dictionary for converting the file extension to connection type
Definition at line 47 of file UsersController.cs.
The documentation for this class was generated from the following file: