SaeedPooyanfar Posted May 21, 2017 Share Posted May 21, 2017 Hi, How can get all products information in one request? If i want all information, i have to send multiple requests which takes a lot of times ... For "just one product": one request for "specific price", one request for "stock available", one request for "product options", one request for "product option values", one request for "product features" and ... !! As you can see i have to send at least 5 requests for just one product !! Maybe my approach is wrong ?! 1 Link to comment Share on other sites More sharing options...
genweb Posted May 21, 2017 Share Posted May 21, 2017 Maybe using something like this. Search a product by its name , then its request call will be like : /api/products/?display=full&filter[name]=[blouse] This call will return the product full details with the name “Blouse”. In the above syntax “parameter name to search” can be anything that products method has in its schema. You can search as many numbers of values at a time i.e : /api/products/?display=full&filter[name]=[blouse, Shirt, Top] Source http://www.ipragmatech.com/prestashop-mobile-app-search-sort-filter-product/ Link to comment Share on other sites More sharing options...
SaeedPooyanfar Posted May 21, 2017 Author Share Posted May 21, 2017 Maybe using something like this. Source http://www.ipragmatech.com/prestashop-mobile-app-search-sort-filter-product/ I want "associations" in full details, not just id ... Link to comment Share on other sites More sharing options...
genweb Posted May 21, 2017 Share Posted May 21, 2017 I want "associations" in full details, not just id ... Are you sure display=full will return only ids? Doc says: Include all fields from the "products" resource.URL: (Store URL)/api/products/?display=full http://doc.prestashop.com/display/PS14/Chapter+8+-+Advanced+Use Anyway, I don't know if it will return associations. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now