跳到主要内容

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​

Successful Response

Response Headers
    Schema
      namestringrequired
      pathstringrequired
      sizeintegerrequired
      urlstringrequired
      html_urlstringrequired
      contentstringrequired
      encodingstringrequired
      license objectrequired
      spdx_idstringrequired