Skip to content

api-io/flat-open-api-directory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flat Data Demo: GraphQL Query

This demo is part of a larger Flat Data project created by GitHub OCTO. Read more about the project here.

What this demo does

This repository uses a Flat Data Action to make a GraphQL query to the GitHub API and saves the result in a JSON file. It runs once a month.

Inside .github/workflows/flat.yaml:

- name: Fetch data
        uses: githubocto/flat@v3
        with:
          http_url: https://api.github.com/graphql # GitHub API GraphQL endpoint
          downloaded_filename: queryResponse.json
          authorization: ${{ secrets.API_PAT }} # an API key/secret for the GitHub API being used in the grahpQL query
          axios_config: query.json # a file with axios config details, including a graphQL query

License

MIT

About

Use `Flat Data GitHub Action` to flat apis from external repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%