【发布时间】:2015-04-21 13:40:34
【问题描述】:
API url 中的特殊匹配符号 eg: {?name} , {/other_user}
如何与客户打交道?
为什么要使用它?
参考:
https://api.github.com/repos/boot2docker/boot2docker/releases
例子:
{
"upload_url": "https://uploads.github.com/repos/boot2docker/boot2docker/releases/1161957/assets{?name}",
"id": 1161957,
"tag_name": "v1.6.0",
"author": {
"following_url": "https://api.github.com/users/tianon/following{/other_user}",
"gists_url": "https://api.github.com/users/tianon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tianon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tianon/subscriptions",
"organizations_url": "https://api.github.com/users/tianon/orgs",
"repos_url": "https://api.github.com/users/tianon/repos",
"events_url": "https://api.github.com/users/tianon/events{/privacy}",
}
}
【问题讨论】:
标签: json api url github-api restful-url