Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gatsby-source-postman

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-postman

Gatsby Source plugin for pulling Postman collections.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Description

Gatsby Source plugin for pulling Postman collections.

Learning Resources

  • https://www.gatsbyjs.com/
  • https://www.postman.com/
  • https://learning.postman.com/docs/developer/intro-api/

How to install

npm install --save gatsby-source-postman

Examples of usage

In your gatsby-config.js :

{
  resolve: `gatsby-source-postman`,
  options: {
    apiToken: `<your Postman API token>`,
    collectionId: `<your Postman Collection id>`
  }
}

How to query for data

Query details from a Postman Collection

export const pageQuery = graphql`
{
  collection {
    id
    name
    description
  }
}
`;

Query all requests from the Postman Collection

export const query = graphql`
{
  allRequest {
    nodes {
      id
      name
      request {
        description
        method
        url {
          raw
        }
      }
    }
  }
}
`;

Keywords

gatsby

FAQs

Package last updated on 16 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts