Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Assets API - Number of folders retrieved?

Avatar

Level 1

Hi all,

I have a quick questions regarding this api https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?l...

 

What's the limit of folders sent by the API when making the call? Is there pagination?

I can't find this on the docs

 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @apollostears,

Pagination is supported, despite the fact it is not directly mentioned in the documentation. You can see that json response provides information about offset and limit.

asset-api-pagination.jpg

You can simply use offset and/or limit in query parameters for pagination e.g.

http://localhost:4502/api/assets/we-retail/en.json?limit=5&offset=1

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @apollostears,

Pagination is supported, despite the fact it is not directly mentioned in the documentation. You can see that json response provides information about offset and limit.

asset-api-pagination.jpg

You can simply use offset and/or limit in query parameters for pagination e.g.

http://localhost:4502/api/assets/we-retail/en.json?limit=5&offset=1

Avatar

Level 1

Thank you! Do you know by default what's the limit of returned elements?