@escaladesports/gatsby-source-esca-api

0.2.0 • Public • Published

@escaladesports/gatsby-source-esca-api

Used to get product information for escalade sports into gatsby.

Implementation

Inside of gatsby-config.js

{
 resolve: `@escaladesports/gatsby-source-esca-api`,
 options: {
  site: `lifeline`, // site-id you are using
  env: `prod`, // environment you wish to retrieve products from
  fields: [`inventory`, `price`], // base fields you wish to query
  salsify: [`Web Images`], // any other salsify fields --> NO SUPPORT FOR GATSBY IMAGE THOUGH
  apiKey: X_API_KEY, // X-API-KEY needed to pass to esca api's
 },
},

This returns two types: EscaladeProducts and allEscaladeProducts

Readme

Keywords

none

Package Sidebar

Install

npm i @escaladesports/gatsby-source-esca-api

Weekly Downloads

10

Version

0.2.0

License

ISC

Unpacked Size

12.3 kB

Total Files

11

Last publish

Collaborators

  • amadoa
  • codevelopit
  • dalewray
  • escasports
  • mastaaaron
  • tbaustin