Events Endpoints
5. Get All Events
Retrieve a list of all events, optionally filtered by category.
- URL:
/api/Events
- Method:
GET
- Authentication: None Required
Query Parameters:
| Parameter |
Type |
Required |
Notes |
category |
string |
No |
Filter events by category name |
Response (data):
A list of Event objects:
[
{
"id": "guid",
"name": "Event Name",
"title": "Event Title",
"description": "Event Description",
"category": "Workshop",
"location": "Online / SVU Campus",
"imageUrl": "http://...",
"date": "2024-03-12T14:35:25Z",
"type": 1, // 1=Event, 2=Workshop, 3=Competition
"communityId": "guid",
"isDeleted": false,
"createdAt": "2024-03-12T14:35:25Z",
"updatedAt": null
}
]
Error Codes
While isSuccess: false is the primary check, erroCode provides specific details:
0: No Error
1: Validation Error (Check message for details)
2: Unauthorized
3: Forbidden
4: Not Found
5: Internal Server Error
6: Bad Request
Events Endpoints
5. Get All Events
Retrieve a list of all events, optionally filtered by category.
/api/EventsGETQuery Parameters:
categorystringResponse (
data):A list of Event objects:
[ { "id": "guid", "name": "Event Name", "title": "Event Title", "description": "Event Description", "category": "Workshop", "location": "Online / SVU Campus", "imageUrl": "http://...", "date": "2024-03-12T14:35:25Z", "type": 1, // 1=Event, 2=Workshop, 3=Competition "communityId": "guid", "isDeleted": false, "createdAt": "2024-03-12T14:35:25Z", "updatedAt": null } ]Error Codes
While
isSuccess: falseis the primary check,erroCodeprovides specific details:0: No Error1: Validation Error (Checkmessagefor details)2: Unauthorized3: Forbidden4: Not Found5: Internal Server Error6: Bad Request