diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-30 09:06:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-09-30 09:06:02 +0300 |
commit | 42572f63eab5db8dc39279e0deeeadef86180a71 (patch) | |
tree | ceab7f3103ae2a6b271ea219eac141adb61ff762 /doc/api/templates | |
parent | e8185569bf058dde3f878b2a6be29649d3bcd49c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/templates')
-rw-r--r-- | doc/api/templates/gitignores.md | 12 |
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 ``` |