Commit 45811f91 authored by Evan Read's avatar Evan Read

Merge branch 'doc_gitignore' into 'master'

Documentation: Update and improve templates/gitignores.html

See merge request gitlab-org/gitlab!17491
parents 83a9ea15 a8bae47b
......@@ -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
```
......
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