Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Github';什么是RESTAPI?_Rest_Github_Github Api - Fatal编程技术网

如何从Github';什么是RESTAPI?

如何从Github';什么是RESTAPI?,rest,github,github-api,Rest,Github,Github Api,我试图使用从存储库中获取所有问题的列表。例如,让我们看看 当我向GET请求时https://github.com/facebook/react/issues/它只返回网页,但我想要的是一个包含所有问题的JSON 如何获取JSON响应?您需要使用API子域上的API: GET https://api.github.com/repos/facebook/react/issues ^^^^ 您需要在API子域上使用API: GET https://api.github.com

我试图使用从存储库中获取所有问题的列表。例如,让我们看看

当我向
GET请求时https://github.com/facebook/react/issues/
它只返回网页,但我想要的是一个包含所有问题的JSON

如何获取JSON响应?

您需要使用
API
子域上的API:

GET https://api.github.com/repos/facebook/react/issues
            ^^^^
您需要在
API
子域上使用API:

GET https://api.github.com/repos/facebook/react/issues
            ^^^^