Expand my Community achievements bar.

SOLVED

Adobe recommended location to store API JSON

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

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