Moving assets to PIM system - HTTP API the correct choice
I am creating an integration between the AEM system and our PIM system. What I want to accomplish is I want to be able to "monitor" a particular folder structure and if an asset is moved to this folder or any subfolders I want to download it and upload it into our PIM system. I need basically two capabilities:
1. A way to do a quick query to say are there any assets (other than folders) in a given folder
2. Download any of those assets
I have been through the documentation and it seems the HTTP Asset API seems like the most logical choice but I don't see an easy way to achieve #1 without manually iterating the folder structure I want to monitor and do a list contents call checking for assets. This does not seem like a good choice. Is there an easier way to do such a query? Is the Http Assets API not the way to do it?
I should add that this is AEM 6.5 on premise not the cloud service.
Thanks.