Skip to content

Alisha : Refactor Create wish lists for users frontend #1998

Open
alishawalunj wants to merge 2 commits intodevelopmentfrom
alisha/refactor/listing-bidding-wishlist-backend
Open

Alisha : Refactor Create wish lists for users frontend #1998
alishawalunj wants to merge 2 commits intodevelopmentfrom
alisha/refactor/listing-bidding-wishlist-backend

Conversation

@alishawalunj
Copy link
Contributor

@alishawalunj alishawalunj commented Jan 11, 2026

Description

EEFF44AC-8976-4789-B658-BC829C295953

Related PRS (if any):

This frontend PR is related #4785 frontend PR.

Main Changes

  • Updated existing controller methods in wishlistsController.js to accept userId.
  • Implemented functionality to fetch, add, and remove listings from a user’s wishlist.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. In postman hit below endpoint along with token :
  • Fetch wishlist:
    GET http://localhost:4500/api/lb/wishlist?userId=6652347c57ca141fe891e1ca

  • Listing IDs for testing:
    681fdf0e9b28a081622ba775, 68c4897c33571a094fd221f6

  • Add to wishlist:
    POST http://localhost:4500/api/lb/wishlist/add

    {
      "userId": "6652347c57ca141fe891e1ca",
      "listingId": "68c4897c33571a094fd221f6"
    }
  • Remove from wishlist:
    POST http://localhost:4500/api/lb/wishlist/remove/68c4897c33571a094fd221f6

  1. Verify that:
  • Wishlist retrieval reflects added and removed listings.
  • Auditing and deletion actions correctly update the retrieved wishlist data.

Screenshots or videos of changes:

C5302603-79D5-4B8B-8FAA-BFF9E990A0B4

376AA231-A859-4AA7-A17C-B7C2EF93C289

201456C4-AAA3-4FD1-9BA5-6795ADC2DEE6

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.

1 participant