Query metadata through an external API in the compiled site #781
yl5682
started this conversation in
Development
Replies: 1 comment 2 replies
-
Hi @yl5682 thank you for this question. We will be in touch with feedback shortly! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was prompted to have this question when I was suggested by Harvard Art Museums to query their APIs to get the latest metadata to art objects that they curate. The idea is that the metadata may change from time to time as they update the information. Instead of baking the metadata into a Quire project's
objects.yml
, I am encouraged to make a call to an API like this:https://api.harvardartmuseums.org/object/123456
and extract the metadata from corresponding fields from the JSON response.
However, this seems to conflict the idea that a Quire site is static, and is generated at the build time.
Therefore I want to get some confirmation (or opposition) from the maker of Quire - should I gather metadata and have them integrated into the corresponding ymls during build time? Or is there an optimal way to let a built Quire site still pull data through an API live when a user is accessing the site?
Please feel free to advise/discuss. I look forward to best practice advice!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions