<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Project templates API > 原文:[https://docs.gitlab.com/ee/api/project_templates.html](https://docs.gitlab.com/ee/api/project_templates.html) * [Get all templates of a particular type](#get-all-templates-of-a-particular-type) * [Get one template of a particular type](#get-one-template-of-a-particular-type) # Project templates API[](#project-templates-api "Permalink") 此 API 是這些端點的特定于項目的版本: * [Dockerfile templates](templates/dockerfiles.html) * [Gitignore templates](templates/gitignores.html) * [GitLab CI/CD Configuration templates](templates/gitlab_ci_ymls.html) * [Open source license templates](templates/licenses.html) 它不贊成使用這些端點,對??于 API 版本 5 將會刪除這些端點. 除了整個實例通用的模板之外,該 API 端點還提供特定于項目的模板. 在以后的[版本中,](../user/project/description_templates.html)將添加對[發布和合并請求模板的](../user/project/description_templates.html)支持. 支持[組級文件模板](../user/group/index.html#group-file-templates-premium) 是在 GitLab 11.5 中[添加的](https://gitlab.com/gitlab-org/gitlab/-/issues/5987) ## Get all templates of a particular type[](#get-all-templates-of-a-particular-type "Permalink") ``` GET /projects/:id/templates/:type ``` | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `id` | 整數/字符串 | yes | 項目的 ID 或[URL 編碼的路徑](README.html#namespaced-path-encoding) | | `type` | string | yes | 模板的類型`(dockerfiles&#124;gitignores&#124;gitlab_ci_ymls&#124;licenses)` | 響應示例(許可證): ``` [ { "key": "epl-1.0", "name": "Eclipse Public License 1.0" }, { "key": "lgpl-3.0", "name": "GNU Lesser General Public License v3.0" }, { "key": "unlicense", "name": "The Unlicense" }, { "key": "agpl-3.0", "name": "GNU Affero General Public License v3.0" }, { "key": "gpl-3.0", "name": "GNU General Public License v3.0" }, { "key": "bsd-3-clause", "name": "BSD 3-clause \"New\" or \"Revised\" License" }, { "key": "lgpl-2.1", "name": "GNU Lesser General Public License v2.1" }, { "key": "mit", "name": "MIT License" }, { "key": "apache-2.0", "name": "Apache License 2.0" }, { "key": "bsd-2-clause", "name": "BSD 2-clause \"Simplified\" License" }, { "key": "mpl-2.0", "name": "Mozilla Public License 2.0" }, { "key": "gpl-2.0", "name": "GNU General Public License v2.0" } ] ``` ## Get one template of a particular type[](#get-one-template-of-a-particular-type "Permalink") ``` GET /projects/:id/templates/:type/:key ``` | Attribute | Type | Required | Description | | --- | --- | --- | --- | | `id` | 整數/字符串 | yes | 項目的 ID 或[URL 編碼的路徑](README.html#namespaced-path-encoding) | | `type` | string | yes | 模板的類型`(dockerfiles&#124;gitignores&#124;gitlab_ci_ymls&#124;licenses)` | | `key` | string | yes | 從集合端點獲取的模板的密鑰 | | `project` | string | no | 在模板中擴展占位符時要使用的項目名稱. 僅影響許可證 | | `fullname` | string | no | 在模板中擴展占位符時使用的版權所有者的全名. 僅影響許可證 | 響應示例(Dockerfile): ``` { "name": "Binary", "content": "# This file is a template, and might need editing before it works on your project.\n# This Dockerfile installs a compiled binary into a bare system.\n# You must either commit your compiled binary into source control (not recommended)\n# or build the binary first as part of a CI/CD pipeline.\n\nFROM buildpack-deps:jessie\n\nWORKDIR /usr/local/bin\n\n# Change `app` to whatever your binary is called\nAdd app .\nCMD [\"./app\"]\n" } ``` 響應示例(許可證): ``` { "key": "mit", "name": "MIT License", "nickname": null, "popular": true, "html_url": "http://choosealicense.com/licenses/mit/", "source_url": "https://opensource.org/licenses/MIT", "description": "A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.", "conditions": [ "include-copyright" ], "permissions": [ "commercial-use", "modifications", "distribution", "private-use" ], "limitations": [ "liability", "warranty" ], "content": "MIT License\n\nCopyright (c) 2018 [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看