PEC-CSS / acm-website-backend

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

api for /user/events #71

Closed harasees-singh closed 8 months ago

harasees-singh commented 8 months ago

api for /user/events, response List, responses are paginated, request params accepted are offset, pageSize and eventRole = {ORGANIZER, PARTICIPANT, PUBLICITY}

IMPORTANT - api assumes 1 user can only assume 1 role in an event transaction i.e. a user cannot have 2 or more roles in an event.

harshjohar commented 8 months ago

Isn't this already done in #65 ? Or is this different in some way?

65 didnt have implementation of this particular api, this is /user/events but that was /events/user

ken1000minus7 commented 8 months ago

Isn't this already done in #65 ? Or is this different in some way?

65 didnt have implementation of this particular api, this is /user/events but that was /events/user

But how are they different, they seem to be doing the same thing, getting list of events for a user with a role