charbelfakhry / csis_279_fall_23_nest

5 stars 1 forks source link

Friendships Management #12

Open charbelfakhry opened 9 months ago

charbelfakhry commented 9 months ago

CRUD/REST management including Controllers, services and DTO

aboudekahil commented 9 months ago

Hello, for the friendships, i think you should do a friendships service and work on the user controller itself. The following routes should be implemented.

POST /follow (body: id of the user to follow) GET /followers?userid= (where the query parameter is the user id of the person to get all the followers from) DELETE /follow (to unfollow a user, same body as post)

use the jwt to get the user id of thw follower.

Thank you