Pim-community-dev: 2.3.19 API - Search variant product by a parent and access to a family of a product model

Created on 5 Dec 2018  路  5Comments  路  Source: akeneo/pim-community-dev

Hi,

I had 2 issues :

  1. if you have a product model and want to retrieve all related variant products, you can't.
  2. If you retrieve a product model by the API and want to know the family of this product model, you also can"t. You just have the variant family.

I had to override akeneo :

  1. override parameters of 2 services and a normalizer for the first issue
  2. override the API ProductModelNormalizer for the second

But I don't understand why we can't do this by default in the Akeneo API. Is-there a reason ?

question

Most helpful comment

+1 to add urgently!

absurd! not to have the variations of a "product model" (in the API response):
"product model"> "variations" children products

OR

absurd! not being able to search for the children of a parent product:
?search={"parent":[{"operator":"IN","value":["796"]}]}

AND

API option to display only variations attributes :
"Display All level specific attributes"

All 5 comments

Same issue here...
Using the API, I'm trying to get all children of a product model and I can't... Here is what I found:

Same issue here..Its strange that the parent is not supported by default in Akeneo API

+1 to add urgently!

absurd! not to have the variations of a "product model" (in the API response):
"product model"> "variations" children products

OR

absurd! not being able to search for the children of a parent product:
?search={"parent":[{"operator":"IN","value":["796"]}]}

AND

API option to display only variations attributes :
"Display All level specific attributes"

I believe this has since be available in Akeneo 3.1 via AncestorIdFilter?

https://github.com/akeneo/pim-community-dev/pull/10205/files

Is it wishful thinking that this will be back-ported to v2?

Hi akeneo users,

I am also facing same problem, did anybody solved this problem via api calls?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jacky75 picture Jacky75  路  3Comments

pardahlman picture pardahlman  路  4Comments

vsilent picture vsilent  路  3Comments

Piotr-Borek picture Piotr-Borek  路  5Comments

paulchubatyy picture paulchubatyy  路  5Comments