A developer must display the results of an external API call by using Server-Side Rendering in Adobe Experience Manager.
Which actions should the developer take to accomplish this task?
In AEM, HTL in an AEM component renders markup on the server and commonly obtains its presentation data from a Sling Model. A backend OSGi component can encapsulate the HTTP-client call to the external API; the Sling Model consumes that service and exposes the returned data for the component to render. This keeps external integration in an OSGi service and presentation in the component/HTL layer.
Community Discussion