How would you fetch data from a remote REST API during the site build process? #474
Unanswered
preslavrachev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hello @preslavrachev, are you using GitHub or is it on something else? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
How would you approach the following case - I have a
@DataMapper
instance, but instead of loading the data from a JSON file, I want to call a remote REST endpoint that would serve the JSON.At the moment, I call the REST endpoint as part of the build pipeline, and then store the response in a JSON file, leaving the rest to the data plugin. However, I am sure there's probably a better way to do that.
I am open to your suggestions.
Beta Was this translation helpful? Give feedback.
All reactions