Commit 9e3cca53 authored by Alexis Sánchez's avatar Alexis Sánchez Committed by Evan Read

Documentation: Api - Resources Gitlab_ci_yml templates

parent 102c1b63
...@@ -12,10 +12,12 @@ information on CI/CD pipeline configuration in GitLab, see the ...@@ -12,10 +12,12 @@ information on CI/CD pipeline configuration in GitLab, see the
Get all GitLab CI YML templates. Get all GitLab CI YML templates.
``` ```plaintext
GET /templates/gitlab_ci_ymls GET /templates/gitlab_ci_ymls
``` ```
Example request:
```bash ```bash
curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls
``` ```
...@@ -28,6 +30,10 @@ Example response: ...@@ -28,6 +30,10 @@ Example response:
"key": "Android", "key": "Android",
"name": "Android" "name": "Android"
}, },
{
"key": "Android-Fastlane",
"name": "Android-Fastlane"
},
{ {
"key": "Auto-DevOps", "key": "Auto-DevOps",
"name": "Auto-DevOps" "name": "Auto-DevOps"
...@@ -48,6 +54,10 @@ Example response: ...@@ -48,6 +54,10 @@ Example response:
"key": "Clojure", "key": "Clojure",
"name": "Clojure" "name": "Clojure"
}, },
{
"key": "Code-Quality",
"name": "Code-Quality"
},
{ {
"key": "Crystal", "key": "Crystal",
"name": "Crystal" "name": "Crystal"
...@@ -95,14 +105,6 @@ Example response: ...@@ -95,14 +105,6 @@ Example response:
{ {
"key": "Mono", "key": "Mono",
"name": "Mono" "name": "Mono"
},
{
"key": "Nodejs",
"name": "Nodejs"
},
{
"key": "OpenShift",
"name": "OpenShift"
} }
] ]
``` ```
...@@ -111,14 +113,16 @@ Example response: ...@@ -111,14 +113,16 @@ Example response:
Get a single GitLab CI YML template. Get a single GitLab CI YML template.
``` ```plaintext
GET /templates/gitlab_ci_ymls/:key GET /templates/gitlab_ci_ymls/:key
``` ```
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
| ---------- | ------ | -------- | ----------- | | ---------- | ------ | -------- | ------------------------------------- |
| `key` | string | yes | The key of the GitLab CI YML template | | `key` | string | yes | The key of the GitLab CI YML template |
Example request:
```bash ```bash
curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls/Ruby curl https://gitlab.example.com/api/v4/templates/gitlab_ci_ymls/Ruby
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment