Get a license
GET
/licenses/{license}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- license stringrequired
Responses
application/json License object
Response
body string
requiredExample:
The MIT License (MIT)
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
conditions array[string]
requiredExample:
[
"include-copyright"
]description string
requiredExample:
A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.featured boolean
requiredExample: true
html_url string<uri>
requiredExample: http://choosealicense.com/licenses/mit/
implementation string
requiredExample:
Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.key string
requiredExample: mit
limitations array[string]
requiredExample:
[
"no-liability"
]name string
requiredExample: MIT License
node_id string
requiredExample: MDc6TGljZW5zZW1pdA==
permissions array[string]
requiredExample:
[
"commercial-use",
"modifications",
"distribution",
"sublicense",
"private-use"
]spdx_id string
requirednullable Example: MIT
url string<uri>
requirednullable Example: https://api.github.com/licenses/mit
Not modified
application/json Basic Error object
Forbidden
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optionalapplication/json Basic Error object
Resource not found
documentation_url string
optionalmessage string
optionalstatus string
optionalurl string
optional