Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-09-30 09:06:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-09-30 09:06:02 +0300
commit42572f63eab5db8dc39279e0deeeadef86180a71 (patch)
treeceab7f3103ae2a6b271ea219eac141adb61ff762 /doc/api/templates
parente8185569bf058dde3f878b2a6be29649d3bcd49c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/templates')
-rw-r--r--doc/api/templates/gitignores.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/api/templates/gitignores.md b/doc/api/templates/gitignores.md
index 0b6d944cb62..45820b24f10 100644
--- a/doc/api/templates/gitignores.md
+++ b/doc/api/templates/gitignores.md
@@ -12,10 +12,12 @@ information on `gitignore`, see the
Get all `.gitignore` templates.
-```
+```plaintext
GET /templates/gitignores
```
+Example request:
+
```bash
curl https://gitlab.example.com/api/v4/templates/gitignores
```
@@ -111,14 +113,16 @@ Example response:
Get a single `.gitignore` template.
-```
+```plaintext
GET /templates/gitignores/:key
```
-| Attribute | Type | Required | Description |
-| ---------- | ------ | -------- | ----------- |
+| Attribute | Type | Required | Description |
+| ---------- | ------ | -------- | ------------------------------------ |
| `key` | string | yes | The key of the `.gitignore` template |
+Example request:
+
```bash
curl https://gitlab.example.com/api/v4/templates/gitignores/Ruby
```