Need all child level data in single API call
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 2
- Joined: 10 Mar 2022, 11:39
Need all child level data in single API call
hello,
We have an API call to get all catalogs including child catalogs via an API call: /jsonapi/catalog and with include parameter (include=catalog). but this is returning only child catalogs on the first level. We need an API call that returns all levels of catalogs in a single call with text and media.
Like if the c1 catalog has a child c2 catalog. and c2 catalog has child c3.
Then our goal is to call API on the c1 catalog, which returns details of c2 and c3 both
Thanks
We have an API call to get all catalogs including child catalogs via an API call: /jsonapi/catalog and with include parameter (include=catalog). but this is returning only child catalogs on the first level. We need an API call that returns all levels of catalogs in a single call with text and media.
Like if the c1 catalog has a child c2 catalog. and c2 catalog has child c3.
Then our goal is to call API on the c1 catalog, which returns details of c2 and c3 both
Thanks
Re: Need all child level data in single API call
Which Aimeos version do you use?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 2
- Joined: 10 Mar 2022, 11:39
Re: Need all child level data in single API call
Hi,
Please find the version in the attached image.
Thanks
Please find the version in the attached image.
Thanks
- Attachments
-
- image.png (36.98 KiB) Viewed 820 times
Re: Need all child level data in single API call
Use this configuration to get the whole tree:
https://github.com/aimeos/ai-client-jso ... #L119-L137
https://github.com/aimeos/ai-client-jso ... #L119-L137
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star