keyshade
keyshade copied to clipboard
API: Add endpoint to fetch all workspace invitations for a user
Description
We would like to add an endpoint to fetch all the active workspace invitations that the user has.
Solution
- Add an endpoint
/api/workspace/invitations
underworkspace.controller.ts
- Add a function named
getAllWorkspaceInvitations
inworkspace.service.ts
that implements the logic. The response should be paginated - Add proper tests in
workspace.e2e.spec.ts