DPigeon / Edge

A web-base application kind of like a social media site to allow parents to communicate with teachers and vice-versa.
0 stars 1 forks source link

Getting Requests and Processing Them #97

Closed AnasBuyumad closed 5 years ago

AnasBuyumad commented 5 years ago

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.

DPigeon commented 5 years ago

This is done.