@@ -5,85 +5,93 @@ under [`/lib/api`](https://gitlab.com/gitlab-org/gitlab-ce/tree/master/lib/api).
The main GitLab API is a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) API. Therefore, documentation in this section assumes knowledge of REST concepts.
## Resources
## API Resources
Documentation for various API resources can be found separately in the
"description":"The GNU GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license.",
"conditions":[
"include-copyright",
"document-changes",
"disclose-source",
"same-license"
],
"permissions":[
"commercial-use",
"modifications",
"distribution",
"patent-use",
"private-use"
],
"limitations":[
"no-liability"
],
"content":" GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n [...]"
"description":"A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.",
"conditions":[
"include-copyright"
],
"permissions":[
"commercial-use",
"modifications",
"distribution",
"private-use"
],
"limitations":[
"no-liability"
],
"content":"The MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n [...]"
}
]
```
## Single license template
Get a single license template. You can pass parameters to replace the license
placeholder.
```
GET /licenses/:key
```
| Attribute | Type | Required | Description |
| ---------- | ------ | -------- | ----------- |
| `key` | string | yes | The key of the license template |
| `project` | string | no | The copyrighted project name |
| `fullname` | string | no | The full-name of the copyright holder |
>**Note:**
If you omit the `fullname` parameter but authenticate your request, the name of
the authenticated user will be used to replace the copyright holder placeholder.
"description":"A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.",
"conditions":[
"include-copyright"
],
"permissions":[
"commercial-use",
"modifications",
"distribution",
"private-use"
],
"limitations":[
"no-liability"
],
"content":"The MIT License (MIT)\n\nCopyright (c) 2016 John Doe\n [...]"
}
```
This document was moved to [another location](templates/licenses.md).