Just to give a brief about what we are trying to achieve here.
We are creating an AEM based website with various configurable components. I would add a Pega Web Mash Up on AEM website into a placeholder component area (using HTML Pega Mash up code appended in AEM website code) . This Web Mash up iframe would show specific Pega specific gadgets in AEM website and then once I would click inside this gadget, there will be a REST call made to pega real time containers internally to extract decisioning offers and shown to the user as part of Adobe Website. Do you see any infeasibility ?
could you please suggest me how i can add the JS to call rest api to a adobe aem web page and where please? Thanks!
We tried further to add this JS from a adobe component and got the response back from Rest API. Could anyone suggest on how I can map the response from Rest API to my AEM web page now please ?
once we are able to map that response into AEM UI,we would then maintain the JS call in proper content library and refer them in our page to maintain JS properly.