Skip to content

profile api implimentation #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sawanb22
Copy link


name: 🚀 Pull Request
about: Propose changes to improve the project
title: "[FEATURE] Add profile API endpoints with MongoDB Atlas"
labels: ''
assignees: ''

📝 Description

This pull request adds backend API endpoints to handle user profile data as part of Issue #10 ("Integrate Profile Page with Node Backend").

🛠 Changes

  • Implemented GET /api/v1/profile to fetch user profile information
  • Implemented PUT /api/v1/profile to update user profile information
  • Connected backend to MongoDB Atlas using Mongoose
  • Created User model for profile data

✅ Checklist

  • I have read the Contributing Guidelines
  • My code follows the project's style guidelines
  • I have updated documentation if necessary

📸 Screenshots (if applicable)

N/A (No UI changes)

📚 Additional Notes

  • Please let me know if you have any feedback on the implementation or require further changes!

@Community-Programmer
Copy link
Owner

@sawanb22 Please make it consistent with the structure we've used in the auth controllers. We're using Passport.js for middleware, so kindly review the existing setup once. Also, once you're done, please include screenshots of the API testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants