Get Repository License Agreement
GET/api/v5/repos/:owner/:repo/license
Request
Path Parameters
owner stringrequired
Repository space address (address path of the enterprise, organization, or individual)
repo stringrequired
Repository path (path)
Query Parameters
access_token string
Responses
- 200
Successful Response
Response Headers
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
pathstringrequired
sizeintegerrequired
urlstringrequired
html_urlstringrequired
contentstringrequired
encodingstringrequired
license objectrequired
spdx_idstringrequired
{
"name": "string",
"path": "string",
"size": 0,
"url": "string",
"html_url": "string",
"content": "string",
"encoding": "string",
"license": {
"spdx_id": "string"
}
}