REST API Implementation in AEM
Hello Everyone,
I just wanted to throw a question on REST API implementation here. We have a third-party REST API that returns data needed for our website's couple of pages. I am not sure which REST Client to use or how to implement one in terms of AEM development. So, I am just seeking some guidance here. Additionally, we have authentication credentials for different environments to access the API. Where should I store those credentials so that it stays secured and won't get compromised.
Continuing the above, we want to build a component that displays those data. We want to have an authoring dialog where the author can select a location from the pre-populated list, and that component will bring data for that particular location only (once authored). With this, how the overall setup should look like?
Also, how would I build (if possible) a caching mechanism so that it doesn't make API calls for the same set of parameters repeatedly?
Any suggestion here will be appreciated. Thank you!