Pull data from a JSON API endpoint and turn into Gatsby nodes
npm i gatsby-source-json
plugins: [
resolve: 'gatsby-source-json',
options: {
// name the gatsby node
name: 'Articles',
// url for JSON endpoint
uri: 'www.example.com/example.json',
// Basic Auth if required (optional)
auth: {
username: 'userename',
password: 'password'
},
// image location to process images. Default: "image.url"
image_location: "image.url",
}
]