使用一些GraphQL Java库(如果可用)的Java的GitHub V4 GraphQL API [英] GitHub V4 GraphQL API with Java using some GraphQL Java library (if available)

查看:71
本文介绍了使用一些GraphQL Java库(如果可用)的Java的GitHub V4 GraphQL API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于API的V3版本,我在Stackoverflow上发现了很多问题. 在 https://developer.github.com/v3/libraries/.

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/.

我宁愿使用V4 api,因为我打算为simplegraph开源项目进行集成,请参见 https://github.com/BITPlan/com.bitplan.simplegraph/issues/5

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

到目前为止,对于V4 API,我发现了以下链接:

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

它看起来像是这样的Schema定义的起点:

It looks as a starting point a Schema definition like this one:

会有所帮助.

我在哪里可以得到github V4 api的graphql-java可用模式定义?

是否有可能从

query {
  __schema {
    types {
      name
      kind
      description
      fields {
        name
      }
    }
  }
}

查询?

http://wiki.bitplan.com/index.php/GitHub- GraphQL 我正在记录下一步.

推荐答案

此处:

Here: https://github.com/octokit/graphql-schema/blob/master/schema.graphql is the GitHub v4 API schema. You can use this schema with graphql-java library.

这篇关于使用一些GraphQL Java库(如果可用)的Java的GitHub V4 GraphQL API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆