Controler for the event management
More...
|
readonly Dictionary< string, string > | fileExtToConType |
| Dictionary for converting the file extension to connection type More...
|
|
Controler for the event management
Definition at line 37 of file EventsController.cs.
◆ EventsController()
Yottabyte.Server.Controllers.EventsController.EventsController |
( |
DataContext |
context, |
|
|
IConfiguration |
configuration |
|
) |
| |
|
inline |
Constructor for the Event Controller
- Parameters
-
context | Data Context |
configuration | Configuration |
Definition at line 65 of file EventsController.cs.
◆ DeleteEvent()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.EventsController.DeleteEvent |
( |
int |
id | ) |
|
|
inline |
Function for deleting a event with a specfic id
- Parameters
-
- Returns
- Was there a problem
Definition at line 296 of file EventsController.cs.
◆ ExtractClaims()
IEnumerable< Claim > Yottabyte.Server.Controllers.EventsController.ExtractClaims |
( |
string |
jwtToken | ) |
|
|
inline |
Function for extracting the claims from JWT Token
- Parameters
-
- Returns
- The claims
Definition at line 378 of file EventsController.cs.
◆ GetEvent() [1/2]
async Task< ActionResult< IEnumerable< Event > > > Yottabyte.Server.Controllers.EventsController.GetEvent |
( |
| ) |
|
|
inline |
Function to returns all of the events
- Returns
- All of the events
Definition at line 77 of file EventsController.cs.
◆ GetEvent() [2/2]
async Task< ActionResult< Event > > Yottabyte.Server.Controllers.EventsController.GetEvent |
( |
int |
id | ) |
|
|
inline |
Functon to get a event with specific id
- Parameters
-
- Returns
- The event
Definition at line 90 of file EventsController.cs.
◆ PostEvent()
async Task< ActionResult< Response > > Yottabyte.Server.Controllers.EventsController.PostEvent |
( |
[FromForm] EventIM |
eventIm | ) |
|
|
inline |
Function for adding an event to the databas
- Parameters
-
- Returns
- Is there a problem
Definition at line 109 of file EventsController.cs.
◆ fileExtToConType
readonly Dictionary<string, string> Yottabyte.Server.Controllers.EventsController.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 52 of file EventsController.cs.
The documentation for this class was generated from the following file: