Skip to content

feat(wishlist): implement complete wishlist API with JWT authentication#46

Merged
Alexandrbig1 merged 4 commits into
OpenCodeChicago:mainfrom
deepesh224-ux:feature/wishlist-api
Oct 12, 2025
Merged

feat(wishlist): implement complete wishlist API with JWT authentication#46
Alexandrbig1 merged 4 commits into
OpenCodeChicago:mainfrom
deepesh224-ux:feature/wishlist-api

Conversation

@deepesh224-ux
Copy link
Copy Markdown
Contributor

Pull Request

Thank you for your contribution!

Description

  • Add Wishlist model with user reference and product IDs
  • Implement wishlist controller with CRUD operations
  • Add JWT authentication middleware
  • Create wishlist routes with proper validation
  • Add test token generation endpoint for development
  • Prevent duplicate products in wishlist
  • Handle edge cases (empty wishlist, invalid IDs)
  • Integrate wishlist routes into main app

Endpoints:

  • GET /api/wishlist - Get user's wishlist
  • POST /api/wishlist - Add product to wishlist
  • DELETE /api/wishlist/:productId - Remove product
  • DELETE /api/wishlist - Clear entire wishlist
  • GET /api/test/token - Generate test JWT token

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Other (please describe):

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code where necessary
  • I have updated documentation (README, Usage, etc.)
  • My changes generate no new warnings or errors
  • I have added tests (if applicable)
  • All tests pass locally with my changes

- Add Wishlist model with user reference and product IDs
- Implement wishlist controller with CRUD operations
- Add JWT authentication middleware
- Create wishlist routes with proper validation
- Add test token generation endpoint for development
- Prevent duplicate products in wishlist
- Handle edge cases (empty wishlist, invalid IDs)
- Integrate wishlist routes into main app

Endpoints:
- GET /api/wishlist - Get user's wishlist
- POST /api/wishlist - Add product to wishlist
- DELETE /api/wishlist/:productId - Remove product
- DELETE /api/wishlist - Clear entire wishlist
- GET /api/test/token - Generate test JWT token
Copy link
Copy Markdown
Contributor

@Alexandrbig1 Alexandrbig1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deepesh224-ux, great work! May you just delete .DS_Store file from PR, please?

- Add Wishlist model with user reference and product IDs
- Implement wishlist controller with CRUD operations
- Add JWT authentication middleware
- Create wishlist routes with proper validation
- Add test token generation endpoint for development
- Prevent duplicate products in wishlist
- Handle edge cases (empty wishlist, invalid IDs)
- Integrate wishlist routes into main app
- Add .DS_Store to .gitignore

Endpoints:
- GET /api/wishlist - Get user's wishlist
- POST /api/wishlist - Add product to wishlist
- DELETE /api/wishlist/:productId - Remove product
- DELETE /api/wishlist - Clear entire wishlist
- GET /api/test/token - Generate test JWT token
@deepesh224-ux
Copy link
Copy Markdown
Contributor Author

deepesh224-ux commented Oct 12, 2025

@deepesh224-ux, great work! May you just delete .DS_Store file from PR, please?

@Alexandrbig1 done

Copy link
Copy Markdown
Contributor

@Alexandrbig1 Alexandrbig1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution, and congrats on your PR being approved!
We’re excited to have your work as part of Open Code Chicago’s Hacktoberfest 2025 project.

@Alexandrbig1 Alexandrbig1 merged commit 831f609 into OpenCodeChicago:main Oct 12, 2025
1 check passed
@Alexandrbig1 Alexandrbig1 added backend Issues related to backend hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. mongodb MongoDB & database management mongoose MongoDB ODM / schema & model work (queries, models, migrations) node.js Backend JavaScript / runtime (Express, APIs, server work) labels Oct 12, 2025
@Alexandrbig1 Alexandrbig1 added this to the Hacktoberfest 2025 milestone Oct 12, 2025
@Alexandrbig1 Alexandrbig1 linked an issue Oct 12, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Issues related to backend hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. mongodb MongoDB & database management mongoose MongoDB ODM / schema & model work (queries, models, migrations) node.js Backend JavaScript / runtime (Express, APIs, server work)

Development

Successfully merging this pull request may close these issues.

Wishlist API Endpoints

2 participants