Returns information about a license template
GET
/licenses/{name}
const url = 'https://gitea.com/api/v1/licenses/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/licenses/example \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Name of the license
Responses
Section titled “Responses”LicenseTemplateInfo
Media typeapplication/json
LicensesInfo contains information about a License
object
body
Body contains the full text of the license
string
implementation
Implementation contains license implementation details
string
key
Key is the unique identifier for the license template
string
name
Name is the display name of the license
string
url
URL is the reference URL for the license
string
Examplegenerated
{ "body": "example", "implementation": "example", "key": "example", "name": "example", "url": "example"}APINotFound is a not found empty response
Media typeapplication/json