A request should be retrieved with a GET on /groupRequests/:requestId (e.g /groupRequests/1)
Response -> An object of model request.
This method souldnt be necessary but still exists.
A request should be processed after a POST on /groupRequests/:requestId (e.g /groupRequests/1)
Body -> {"accept": boolean}
Response -> {"success": boolean}
If accept is set to true, the user associated with the request will be added to the corresponding group with admin set to false, the request will then be deleted.
If accept is set to false, the request will be directly deleted.
A request should be retrieved with a GET on /groupRequests/:requestId (e.g /groupRequests/1)
Response -> An object of model request. This method souldnt be necessary but still exists.
A request should be processed after a POST on /groupRequests/:requestId (e.g /groupRequests/1) Body ->
{"accept": boolean}
Response ->{"success": boolean}
If accept is set to true, the user associated with the request will be added to the corresponding group with admin set to false, the request will then be deleted.
If accept is set to false, the request will be directly deleted.