Skip to content

Unofficial Gatsby Source plugin for pulling Postman collections.

Notifications You must be signed in to change notification settings

impauloalves/gatsby-source-postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Gatsby Source plugin for pulling Postman collections.

Learning Resources

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
        }
      }
    }
  }
}
`;

About

Unofficial Gatsby Source plugin for pulling Postman collections.

Resources

Stars

Watchers

Forks

Packages

No packages published