Commit 32341db8 authored by Marcia Ramos's avatar Marcia Ramos Committed by Achilleas Pipinellis

Docs .gitignore API improvements

parent be07e02c
...@@ -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