Get list of favorite auctions
GET/api/auction/favorites
Retrieves the complete list of auctions marked as favorites by the company.Features:- Paginated list- Sorted by creation date (most recent first)- Includes associated auctions with their complete data- Optional filtering by text and datesOptional query parameters:- page: Page number (default 1)- limit: Items per page (default value of ITEMS_PAGE in .env)- search: Text to search in fav_name or description- minDate/maxDate: Range of favorite creation datesUsage example:GET /api/auction/favorites?page=1&limit=10&search=urgentThe response includes pagination metadata and the basic fields of each favorite auction.
Responses
- 200
- 400
- 401
Paginated list of favorite auctions. Each item includes:- All standard Auction fields- Additional favorite fields: - fav_name: Descriptive name assigned - createdAt: Favorite creation date - updatedAt: Date of last updatePagination metadata:- total: Total favorites- pages: Total pages- page: Current page- limit: Items per page
Request error
Unauthorized