sayan404 / TaskPulse

an application that helps people to register and track there work
https://taskpulse.onrender.com
MIT License
7 stars 11 forks source link

[Backend]: Add Update User Details functionality #31

Closed devanshrajput07 closed 9 months ago

devanshrajput07 commented 9 months ago

API Implementation : Update User Details

  1. Endpoint Information API Endpoint URL: /api/v1/users/me/update HTTP Method: PUT

Request Payload

  1. Request Format: JSON
{
    "name":"Abcdefg",
    "email":"abcdef@gmail.com"
}
  1. Response Format
{
    success: true,
    message: "Profile Updated Successfully",
    user: {
      _id: user._id,
      username: user.name,
      email: user.email,
    },
  }
sayan404 commented 9 months ago

okay assigning this issue to you @devanshrajput07

devanshrajput07 commented 9 months ago

32