PEC-CSS / acm-website-backend

Backend of the official website of PEC ACM CSS
MIT License
17 stars 2 forks source link

Fix get user events api #51

Closed ken1000minus7 closed 11 months ago

ken1000minus7 commented 1 year ago

kuch bhi chal rha

harshjohar commented 11 months ago

Endpoint : /v1/user/events Query param : ?type=

Give event based on type, if provided, otherwise return all events

API response should be paginated, if no page provided, return first 20 record, otherwise as specified

harasees-singh commented 11 months ago
{
"events": [
        {
            "id": eventId,
            "name": eventName,
            "role": eventRole,
            "xp_gained": eventXp,
            "timestamp": eventEnd
        }
    ]
}