git - GitHub API returned Url meaning -
take simple api example,
https://api.github.com/users/zhuhuihuihui
in json formatted response, you'll find following,
"following_url":"https://api.github.com/users/zhuhuihuihui/following
{/other_user}
",
"gists_url": "https://api.github.com/users/zhuhuihuihui/gists
{/gist_id}
",
"starred_url": "https://api.github.com/users/zhuhuihuihui/starred
{/owner}{/repo}"
,
ok, know following_url
, starred_url
sub api can call fetch user following, or repos user has starred.
but, braces mean? 1 i've made bold. how use them?
those placeholders value, need replace actual value in order use links.
it serves remind user how access, instance, following_url user.
without
{/other_user}
, url https://api.github.com/users/zhuhuihuihui/following list users followed.with
{/other_user}
, url https://api.github.com/users/zhuhuihuihui/following/xxx check if follow userxxx
.
Comments
Post a Comment