Gatsby Source plugin for pulling Postman collections.
- https://www.gatsbyjs.com/
- https://www.postman.com/
- https://learning.postman.com/docs/developer/intro-api/
npm install --save gatsby-source-postman
In your gatsby-config.js :
{
resolve: `gatsby-source-postman`,
options: {
apiToken: `<your Postman API token>`,
collectionId: `<your Postman Collection id>`
}
}
export const pageQuery = graphql`
{
collection {
id
name
description
}
}
`;
export const query = graphql`
{
allRequest {
nodes {
id
name
request {
description
method
url {
raw
}
}
}
}
}
`;