Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9e3cca53
Commit
9e3cca53
authored
Oct 11, 2019
by
Alexis Sánchez
Committed by
Evan Read
Oct 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation: Api - Resources Gitlab_ci_yml templates
parent
102c1b63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
doc/api/templates/gitlab_ci_ymls.md
doc/api/templates/gitlab_ci_ymls.md
+17
-13
No files found.
doc/api/templates/gitlab_ci_ymls.md
View file @
9e3cca53
...
@@ -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
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment