OPTION return [catalog] resource as link with lots of query params

How to configure and adapt Aimeos based shops as developer
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!
rowild

OPTION return [catalog] resource as link with lots of query params

Post by rowild » 19 Feb 2023, 21:35

In a local ddev installation the -X OPTIONS return link like these:

https://catalog.brass-trainer-be.ddev.s ... 5D=catalog

This does not enable me to add things like "?include=".
What would I have to do to get the first 3 levels of the catalog tree (in general, but particularly in this case)?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: OPTION return [catalog] resource as link with lots of query params

Post by aimeos » 20 Feb 2023, 11:51

Use:

Code: Select all

https://catalog.brass-trainer-be.ddev.site/jsonapi?ai%5Baction%5D=get&ai%5Bcontroller%5D=Jsonapi&ai%5Bid%5D=1&ai%5Bresource%5D=catalog&ai%include%5D=catalog
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: OPTION return [catalog] resource as link with lots of query params

Post by rowild » 27 Feb 2023, 11:34

Code: Select all

&ai[include]=
that is, right? I got that in the meantime. The docu is not clear on this.

I still wonder why I do not get nice urls? In my other posts your recommended to add another enhanced route, but as I wrote that does not work. Also subdomains do not work – on all-inkl at least – meaning not resource links at all are returned. Why?? (The other posts are still without answer to that.)

This is keeping me since months(!) from working, which is really frustrating now. I don't know what to do...

Post Reply