Commit e275ce8e authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-jimcser-master-patch-25395-coach' into 'master'

Docs .gitignore API improvements

See merge request gitlab-org/gitlab!49065
parents be07e02c 32341db8
...@@ -7,13 +7,12 @@ type: reference ...@@ -7,13 +7,12 @@ type: reference
# .gitignore API # .gitignore API
In GitLab, there is an API endpoint available for `.gitignore`. For more In GitLab, the `/gitignores` endpoint returns a list of Git `.gitignore` templates. For more information,
information on `gitignore`, see the see the [Git documentation for `.gitignore`](https://git-scm.com/docs/gitignore).
[Git documentation](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 ```plaintext
GET /templates/gitignores GET /templates/gitignores
...@@ -112,9 +111,9 @@ Example response: ...@@ -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 ```plaintext
GET /templates/gitignores/:key GET /templates/gitignores/:key
......
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