【问题标题】:Github GraphQL API: how to get rep's one source file by GrahpQL api?Github GraphQL API:如何通过 GrahpQL api 获取代表的一个源文件?
【发布时间】:2023-03-19 04:05:02
【问题描述】:

Github GraphQL API:如何通过 GrahpQL api 获取代表的一个源文件?

比如有somedata.json这样的数据文件,有没有办法通过Github GraphQL API获取?

【问题讨论】:

标签: github graphql github-api


【解决方案1】:

所以答案是

  1. 通过以下方式获取文件夹中的文件路径:

GET /repos/:owner/:repo/git/trees/:tree_sha

  1. 通过raw.githubusercontent.com/获取文件

html-automatically-fetching-json-file-from-github-repo

【讨论】:

    猜你喜欢
    • 2020-01-12
    • 2012-03-05
    • 2018-02-25
    • 2019-12-06
    • 2018-02-02
    • 2018-05-31
    • 2017-06-12
    • 2016-01-08
    • 1970-01-01
    相关资源
    最近更新 更多