我是新来的REST API。我正在尝试创建一个查询来搜索com.jcabi.http.response.JsonResponse其代码中包含的所有 java 存储库。
我通过查看 API 文档中给出的示例创建了以下请求,并且我的查询抛出了错误。
这是查询:
卷曲https://api.github.com/search/code?q=com.jcabi.http.response.JsonResponse+language:java
它会导致以下错误:
Error
{
"message": "Validation Failed",
"errors": [
{
"message": "Must include at least one user, organization, or repository",
"resource": "Search",
"field": "q",
"code": "invalid"
}
],
"documentation_url": "https://developer.github.com/v3/search/"
}
Run Code Online (Sandbox Code Playgroud)
在不指定存储库的情况下是否无法进行代码搜索?
有人可以帮我解决这个问题吗?