Skip to content

Wishlist API Endpoints #20

@Alexandrbig1

Description

@Alexandrbig1

Description: Implement backend support for user wishlist.

Requirements:

  • POST /api/wishlist → add product ID to user’s wishlist
  • DELETE /api/wishlist/:productId → remove product from wishlist
  • GET /api/wishlist → return all products in user’s wishlist
  • Ensure wishlist is linked to authenticated user (JWT required)
  • Validate product IDs against the products collection

Acceptance Criteria:

  • Authenticated user can add/remove products
  • API returns user’s wishlist correctly
  • Handles edge cases (duplicate adds, invalid IDs, empty wishlist)

Note:

This requires MongoDB Atlas connection and user authentication to be set up. If backend hosting is not ready yet, implement locally.

Metadata

Metadata

Labels

backendIssues related to backendhacktoberfestSpecial issue for Hacktoberfesthacktoberfest-2025Special issue for Hacktoberfest 2025priority: highNeeds attention ASAP

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions