Closed Blechlawine closed 3 years ago
Did you read https://aimeos.org/docs/latest/frontend/jsonapi/ regarding nested parameters?
Did you read https://aimeos.org/docs/latest/frontend/jsonapi/ regarding nested parameters?
Yes, I did read that and I also tried nested parameters exactly like "ai[resource]=catalog", which my url in the options response said. And that didn't work.
Please post your used URLs
my url is: "/api?ai[resource]=catalog&ai[action]=options&ai[controller]=Jsonapi", but url encoded.
What's the response of the OPTIONS request sent to /api?
What's the response of the OPTIONS request sent to /api?
exactly that url
And what's exactly the response of GET /api?ai[resource]=catalog&ai[action]=options&ai[controller]=Jsonapi
{ "errors": { "title": "Use OPTIONS method for the resource list", "detail": "This is the Aimeos JSON REST API\n\nUse the HTTP OPTIONS method to retrieve a list available resources from /api?ai%5Baction%5D=options&ai%5Bcontroller%5D=Jsonapi\nDocumentation about he Aimeos JSON REST API is available at https://aimeos.org/docs/Developers/Client/JSONAPI" } }
Ok, so i started with a new installation of typo3, and without changing anything or adding any pages, installed aimeos. Now it works. I still dont know why, but it seems my previous installation of typ3 or aimeos was somehow scuffed.
It doesn't seem to care about any parameters. I tried nested parameters and not nested, both produce the same response. I used the options method to retrieve the urls for the resources and now I am trying to get the catalog resource. If you need any more information, i'll happily provide it. Thanks in advance for helping.