curl --location --request GET 'https://api.github.com/repos///license'
{
"_links": {
"git": "http://example.com",
"html": "http://example.com",
"self": "http://example.com"
},
"content": "string",
"download_url": "http://example.com",
"encoding": "string",
"git_url": "http://example.com",
"html_url": "http://example.com",
"license": {
"html_url": "http://example.com",
"key": "mit",
"name": "MIT License",
"node_id": "MDc6TGljZW5zZW1pdA==",
"spdx_id": "MIT",
"url": "https://api.github.com/licenses/mit"
},
"name": "string",
"path": "string",
"sha": "string",
"size": 0,
"type": "string",
"url": "http://example.com"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通