Skip to content

[FEAT]: Events Endpoints (Get All Events) #37

Description

@AlMonther9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions