API to create, update, delete, view users and also comment, view comment, etc.
- Add user
- Update user
- Delete user
- View all users
- View a user
- View users who love coding
- Comment on a user's profile
- View comments of a user
- /api/v1 GET test route for welcome message
- /api/v1/coding GET Displays list of users who have coding in their interests
- /api/v1/users/add POST Create a new user (body: name(required), email(required), phone, address, designation, interests(required))
- /api/v1/users/update/:id POST Update a user (body: name(required), email(required), phone, address, designation, interests(required))
- /api/v1/users/delete/:id GET Delete a user
- /api/v1/users/all GET Displays list of all users
- /api/v1/users/view/:id GET View a specific user by its id
- /api/v1/users/comment/:to/:by POST Create a comment (to: id of user on which (by: id of user who is commenting) comments)
- /api/v1/users/view-comments/:id GET View comments by a specific user.
There are two test users and a comment as dummy data.