Skip to content

jeremylynch/gatsby-source-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pull data from a JSON API endpoint and turn into Gatsby nodes

Install

npm i gatsby-source-json

Usage

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",
  }
]

About

Gatsby Source Plugin to pull JSON data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published