To which function does this API goes to?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
shainanand
Posts: 26
Joined: 16 Oct 2023, 15:05

To which function does this API goes to?

Post by shainanand » 19 Nov 2023, 03:09

I want to increase the limit of values shown inside dropdown in admin->product->characteristics->attribute dropown. But not sure where to update the limit/slice.

I have a hard time understanding the codebase for this API requests from admin->product->characteristics->attribute dropown

http://npk.test/admin/default/jsonadm/attribute/type?locale=en&filter%5B%26%26%5D%5B0%5D%5B%7C%7C%5D%5B0%5D%5B%3D~%5D%5Battribute.type.code%5D=&filter%5B%26%26%5D%5B1%5D%5B%3E%5D%5Battribute.type.status%5D=0&sort=attribute.type.label

I thought it would be vendor\aimeos\ai-admin-jsonadm\src\Admin\JsonAdm\Attribute\Standard.php. But seems like it isn't. Any help would be appreciated. Also any other way to increase the limit?

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

Re: To which function does this API goes to?

Post by aimeos » 20 Nov 2023, 17:07

This endpoint uses the JsonAdm Standard class because there's no specific implementation for "attribute/type":
https://github.com/aimeos/ai-admin-json ... d.php#L541

But the size of the returned result set should be passed in the JS code.
Which Aimeos version are you using? In the latest verison, the JsonAdm API isn't used any more and the GraphQL API is used instead.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply