braydenidzenga / Dev-Dialogue

MIT License
3 stars 12 forks source link

Get user profile #6

Closed braydenidzenga closed 19 hours ago

braydenidzenga commented 2 days ago

Please create a route that when given a userId it will fetch that given user from the database and return public information such as post count, follower count, name, and username. Please do not return any sensitive information such as emails or passwords.

Please comment how you are going to approach implementing this before the issue will be assigned to you

Anurag12133 commented 2 days ago

assign to me this issue also i can fix this

braydenidzenga commented 2 days ago

assign to me this issue also i can fix this

@Anurag12133 I will assign you this also. Please try and get these two issues completed as soon as possible.

codewithjk commented 2 days ago
  1. we will get the user id from the endpoint as params
  2. in the users / controller , create a getProfile method
  3. in that method we can import the user schema and query using id . and filter out the public data. assign to me
braydenidzenga commented 2 days ago
  1. we will get the user id from the endpoint as params

  2. in the users / controller , create a getProfile method

  3. in that method we can import the user schema and query using id . and filter out the public data.

assign to me

Sorry but I have already assigned this issue to somebody. If you would like I can ping you in future issues.

Anurag12133 commented 1 day ago

no woorries do it by eod