For the V3 Version of the API I found quite a few questions here on Stackoverflow. There are also libraries available at https://developer.github.com/v3/libraries/.
I'd rather use the V4 api because I intend to do an integration for the simplegraph open source project see https://github.com/BITPlan/com.bitplan.simplegraph/issues/5
For the V4 API i found the following links so far:
- https://developer.github.com/v4/explorer/
- https://developer.github.com/v4/guides/forming-calls/#the-graphql-endpoint
- https://api.github.com/graphql
- https://stackoverflow.com/questions/tagged/graphql-java
- https://github.com/graphcool/get-graphql-schema
- https://developer.github.com/v4/guides/forming-calls/#example-query
- https://www.howtographql.com/graphql-java/1-getting-started/
- http://graphql-java.readthedocs.io/en/v7/schema.html
- https://github.com/graphql/graphql-js/issues/657
It looks as a starting point a Schema definition like this one:
- https://github.com/graphql-java/graphql-java/blob/master/src/test/groovy/graphql/StarWarsSchema.java
would be helpful.
Where can I get souch a graphql-java useable schema definition of the github V4 api?
Would it be possible to somehow create this from the Json response of the
query {
__schema {
types {
name
kind
description
fields {
name
}
}
}
}
query?
At http://wiki.bitplan.com/index.php/GitHub-GraphQL I am documenting my next steps.