Adobe recommended location to store API JSON | Community
Skip to main content
Level 3
September 5, 2022
Solved

Adobe recommended location to store API JSON

  • September 5, 2022
  • 1 reply
  • 796 views

Hello team,

 

AEM : 6.5.12

 

Requirement: We need to display offers  on the page and these data would be fetched from external APIs.

 

We plan to store APIs response in any node in CRX in Author and then replicate to publish, so that in End site, we don't make API call at run time, instead we read data stored in AEM and simply display on the Page.

 

Question: What should be ideal location to store such node/data and specific format?

 

Regards,

KTNR

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mohit_KBansal

Hello @arvindpandey 

 

Such blobs kind of data (JSON Payload in this case) can be stored under /var folder.

 

Please make sure to implement a fallback, like if JSON data is not available under /var, make a real-time API call and save it under /var.

 

~ Mohit

1 reply

Mohit_KBansal
Adobe Employee
Mohit_KBansalAdobe EmployeeAccepted solution
Adobe Employee
September 5, 2022

Hello @arvindpandey 

 

Such blobs kind of data (JSON Payload in this case) can be stored under /var folder.

 

Please make sure to implement a fallback, like if JSON data is not available under /var, make a real-time API call and save it under /var.

 

~ Mohit