Guide
Favorites
Lets a buyer save products for later. Every endpoint on this page lives under https://api.swiftgoma.com/api/v1/favorites and requires a signed-in session.
Listing
GET / returns the buyer's favorited products with full product detail, paginated. GET /ids returns just the product IDs — a lighter call for rendering favorite/unfavorite state across a product grid without fetching every product's full detail.
Adding and removing
POST /:productId adds a product; DELETE /:productId removes it.
Adding an already-favorited product, or removing one that isn't favorited, succeeds without error — both endpoints are idempotent.