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>2020-12-03 12:09:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-03 12:09:33 +0300
commit544eaa90817fa8595826fbd44f37452c76b56378 (patch)
tree010190a7a2cbf568b737cd4a8edbc03c955f34f8 /doc/api/templates
parent9214e550c07793a8deb6d5cd5bb136d0d010a7ca (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/templates')
-rw-r--r--doc/api/templates/gitignores.md13
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/api/templates/gitignores.md b/doc/api/templates/gitignores.md
index 3a2b6386bee..2f489b2d6a7 100644
--- a/doc/api/templates/gitignores.md
+++ b/doc/api/templates/gitignores.md
@@ -7,13 +7,12 @@ type: reference
# .gitignore API
-In GitLab, there is an API endpoint available for `.gitignore`. For more
-information on `gitignore`, see the
-[Git documentation](https://git-scm.com/docs/gitignore).
+In GitLab, the `/gitignores` endpoint returns a list of Git `.gitignore` templates. For more information,
+see the [Git documentation for `.gitignore`](https://git-scm.com/docs/gitignore).
-## List `.gitignore` templates
+## Get all `.gitignore` templates
-Get all `.gitignore` templates.
+Get a list of all `.gitignore` templates:
```plaintext
GET /templates/gitignores
@@ -112,9 +111,9 @@ Example response:
]
```
-## Single `.gitignore` template
+## Get a single `.gitignore` template
-Get a single `.gitignore` template.
+Get a single `.gitignore` template:
```plaintext
GET /templates/gitignores/:key