GET Profile
This endpoint allows clients to retrieve profile and account data for any user.
Important Note:you must active your account first. you can active account by verify it
http://127.0.0.1:8080/user/profile
Request Headers
The request should include the following header:
Authorization : Bearer TOKEN
The TOKEN should be replaced with the actual user token obtained during the login process.
Body raw (json)
The request body should contain the following information:
{
"userId": "USER_ID"
}
- "userId": The id of user.
Response
{
"status": true,
"data": {
"userID": "63d5b2c8db392954ecae9737",
"userToken": null,
"userName": "Adel Ayman",
"email": "adelayman0000@gmail.com",
"isVerified": true,
"fcmToken": "YOUR_FCM_TOKEN"
},
"message": "user profile has got successfully"
}