Product price in django oscar api ProductList

57 views
Skip to first unread message

A

unread,
Sep 20, 2016, 4:54:18 AM9/20/16
to django-oscar
Hi,

I am using django oscar api and extending its functionality. Fetching a product price has a separate API. If I am displaying 20 products on a page, I need to call 20 extra APIs to fetch price. Product prices, i think, should be part of response returned by ProductList API. 
My product will have multiple stock records but price will be same for all variants. Looking for a solution where I can make price as a part of productList API. Thanks in advance.

bin zhang

unread,
Sep 26, 2016, 2:42:10 AM9/26/16
to django-oscar
Customise your `ProductSerializer`, replace price with `PriceSerializer`.

在 2016年9月20日星期二 UTC+8下午4:54:18,A写道:

King Olami

unread,
Jun 3, 2018, 6:32:45 PM6/3/18
to django-oscar
Hi, I am using the django-oscar-api but the API-ROOT does not return the categories and therefore cannot display product by category. Any reasons for such and is there a way of implementing this?
Reply all
Reply to author
Forward
0 new messages