Jump to content

Web service: display associations element


Recommended Posts

Hi,

 

I'm working on an application to manage stock using Prestashop Webservices.

 

I'm trying to get the "associations" element for several "combinations" in only one request, so I'm trying the following:

/api/combinations?display=[id,associations]&filter[id]=[id1,id2]

This idea works for other elements such as:

api/stock_availables?filter[id]=[id1|id2]&display=[id,id_product_attribute,quantity]

(That request allows me to get information about several "stock_availables" elements in only one request).

 

My app works if I query each combination element one by one but that is far from being efficient.

 

Any ideas?

Edited by mut3nr01 (see edit history)
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...