简体   繁体   English

GitHub API 返回 Url 含义

[英]GitHub API returned Url meaning

Take this very simple API as example,以这个非常简单的 API 为例,

https://api.github.com/users/zhuhuihuihui https://api.github.com/users/zhuhuihuihui

In the JSON formatted response, you'll find something like following,在 JSON 格式的响应中,您会发现如下内容,

"following_url":"https://api.github.com/users/zhuhuihuihui/following {/other_user} ", "following_url":"https://api.github.com/users/zhuhuihuihui/following {/other_user} ",
"gists_url": "https://api.github.com/users/zhuhuihuihui/gists {/gist_id} ", "gists_url": "https://api.github.com/users/zhuhuihuihui/gists {/gist_id} ",
"starred_url": "https://api.github.com/users/zhuhuihuihui/starred {/owner}{/repo}" , "starred_url": "https://api.github.com/users/zhuhuihuihui/starred {/owner}{/repo}" ,

Ok, I know like the following_url , starred_url is something like a sub API which you can call to fetch who that user are following, or what repos that user has starred.好的,我知道像following_urlstarred_url类似于一个子 API,您可以调用它来获取该用户关注的人,或者该用户已加星标的存储库。

But, what does those braces mean?但是,这些大括号是什么意思? The one I've made it Bold .我把它变成了Bold How do I use them?我如何使用它们?

Those are placeholders value, that you would need to replace by an actual value in order to use those links.这些是占位符值,您需要将其替换为实际值才能使用这些链接。

It serves to remind a user how to access, for instance, the following_url for another user.它用于提醒用户如何访问,例如,另一个用户的 following_url。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 请求的URL返回错误:Github中为403 - The requested URL returned error: 403 in Github Github请求的URL返回错误:403 remote:用户权限 - Github The requested URL returned error: 403 remote: Permission to user 请求的 URL 返回错误:403 Forbidden while accessing github.com - The requested URL returned error: 403 Forbidden while accessing github.com 适用于Windows的Github-“请求的URL返回错误:403”-更改远程服务器后仍然存在问题 - Github for Windows - “The requested URL returned error: 403” - persistent issue after changing remote server 致命:无法访问“ https://github.com/MyName/MyRepo.git/”:请求的URL返回错误:403 - fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403 Git & Github: can't push or clone via SSH or Https, the requested URL returned error 400 - Git & Github: can't push or clone via SSH or Https, the requested URL returned error 400 GitHub Remote:禁止致命:无法访问请求的网址返回错误:403 - GitHub Remote: forbidden fatal: unable to access the requested url returned error: 403 python向github api请求库-对相同URL的响应不一致 - python requests library to github api - inconsistent responses to same url GitHub API中blob_url,raw_url和contents_url有什么区别? - What is the difference between blob_url, raw_url and contents_url in GitHub API? Github push 返回一个奇怪的用户名 - Github push returned a strange username
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM