curl --request GET \
--url https://localhost:5000/users/{identifier} \
--header 'Authorization: Bearer <token>'{
"success": true,
"user": {
"name": "<string>",
"username": "<string>",
"email": "jsmith@example.com",
"_id": "<string>",
"image": "<string>",
"bio": "<string>",
"gender": "<string>",
"emailVerified": true,
"followers": [
"<string>"
],
"following": [
"<string>"
],
"bookmarks": [
"<string>"
],
"blocked_users": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isFollowing": true,
"isBlocked": true,
"postsCount": 123,
"followersCount": 123,
"followingCount": 123
}
}Get a user’s profile by username or ID
curl --request GET \
--url https://localhost:5000/users/{identifier} \
--header 'Authorization: Bearer <token>'{
"success": true,
"user": {
"name": "<string>",
"username": "<string>",
"email": "jsmith@example.com",
"_id": "<string>",
"image": "<string>",
"bio": "<string>",
"gender": "<string>",
"emailVerified": true,
"followers": [
"<string>"
],
"following": [
"<string>"
],
"bookmarks": [
"<string>"
],
"blocked_users": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isFollowing": true,
"isBlocked": true,
"postsCount": 123,
"followersCount": 123,
"followingCount": 123
}
}