Project templates API
Project templates API
此 API 是这些端点的特定于项目的版本:
它不赞成使用这些端点,对于 API 版本 5 将会删除这些端点.
在以后的版本中,将添加对支持.
支持组级文件模板 是在 GitLab 11.5 中
Get one template of a particular type
Attribute | Type | Required | Description |
---|---|---|---|
整数/字符串 | yes | 项目的 ID 或 | |
type |
string | yes | 模板的类型(dockerfiles|gitignores|gitlab_ci_ymls|licenses) |
string | yes | 从集合端点获取的模板的密钥 | |
project |
string | no | 在模板中扩展占位符时要使用的项目名称. 仅影响许可证 |
fullname |
string | no | 在模板中扩展占位符时使用的版权所有者的全名. 仅影响许可证 |
响应示例(Dockerfile):
响应示例(许可证):