spacetelescope / repostats

Creates a sortable HTML table that contains a summary of all the repositories for the specified GitHub organization
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

GitHub migrating to GraphQL #26

Open sosey opened 6 years ago

sosey commented 6 years ago

.. this will change the API interface. Consider updating the calls respectively:

GitHub chose GraphQL for our API v4 because it offers significantly more flexibility for our >integrators. The ability to define precisely the data you want—and only the data you want—is a >powerful advantage over the REST API v3 endpoints. GraphQL lets you replace multiple REST >requests with a single call to fetch the data you specify.

For more details about why GitHub has moved to GraphQL, see the original announcement blog >post.

https://developer.github.com/v4/guides/migrating-from-rest/

pllim commented 6 years ago

Wow, this is like a complete refactoring. :scream:

I found https://github.com/graphql-python/gql but it is MIT license. Is that a problem?

sosey commented 6 years ago

I'm certainly not refactoring now, I put this up there for whenever they stop hosting the REST API or whenever I decide it's worth learning GraphQL (which is a current preview offering)

sosey commented 6 years ago

MIT License should be fine.