1.0.0 • Published 6 years ago

gatsby-source-json v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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