Jump to content

[Web Service] Get all products information in one request


SaeedPooyanfar

Recommended Posts

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 ?!

  • Like 1
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...