A license's name, URL, duties and full text
curl --request GET \
--url https://patch.gg/api/v1/assets/licenses/{spdx}const options = {method: 'GET'};
fetch('https://patch.gg/api/v1/assets/licenses/{spdx}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/assets/licenses/{spdx}"
response = requests.get(url)
print(response.text){
"spdx": "<string>",
"name": "<string>",
"url": "<string>",
"duties": [
"attribute"
],
"text_url": "<string>",
"text": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Assets
A license's name, URL, duties and full text
GET
/
assets
/
licenses
/
{spdx}
A license's name, URL, duties and full text
curl --request GET \
--url https://patch.gg/api/v1/assets/licenses/{spdx}const options = {method: 'GET'};
fetch('https://patch.gg/api/v1/assets/licenses/{spdx}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/assets/licenses/{spdx}"
response = requests.get(url)
print(response.text){
"spdx": "<string>",
"name": "<string>",
"url": "<string>",
"duties": [
"attribute"
],
"text_url": "<string>",
"text": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Path Parameters
Example:
"CC-BY-4.0"