Open
Description
Invitations
2 types
- When the admin invite a new user
- When a user want to join a group
To do
- Remove
declined
andpending
membership - Remove all the verification of
pending
anddeclined
in code - Create a class invitation with : type, id, groupId, invitorId, musicianId
- Route for musician to send invitation to group
POST /profil/invitation
- Route for group to send invitation to musician
POST /groups/{groupId}/invitation
- Route for profil to get all his invitation received
GET /profil/invitation/received
- Route for profil to get all his invitation sent
GET /profil/invitation/sent
- Route for group to get all of these invition received
GET /groups/{groupId}/invitation/received
- Route for group to get all of these invitation sent
GET /groups/{groupId}/invitation/sent
- Route for group to accept invitation
POST /groups/{groupId}/invitation/{invitationId}/accept
- Route for profil to accept invitation
POST /profil/invitation/{invitationId}/accept
- Route for group to decline invitation
POST /groups/{groupId}/invitation/{invitationId}/accept
- Route for profil to decline invitation
POST /profil/invitation/{invitationId}/accept
- Route for group to delete an invitation
POST /groups/{groupId}/invitation/{invitationId}/decline
- Route for profil to delete an invitation
POST /profil/invitation/{invitationId}/decline
- Make notification when musician or group accept invitation
- Make notification when musician or group refuse inviation
- Make notification when musician or group has receive a invitation
- Make sure that when an invitation is confirmed, all other invitation ( both types) from same group and same musician are deleted