Commit a8bae47b authored by Alexis Sánchez's avatar Alexis Sánchez Committed by Evan Read

Documentation: Update and improve templates/gitignores.html

parent 83a9ea15
...@@ -12,10 +12,12 @@ information on `gitignore`, see the ...@@ -12,10 +12,12 @@ information on `gitignore`, see the
Get all `.gitignore` templates. Get all `.gitignore` templates.
``` ```plaintext
GET /templates/gitignores GET /templates/gitignores
``` ```
Example request:
```bash ```bash
curl https://gitlab.example.com/api/v4/templates/gitignores curl https://gitlab.example.com/api/v4/templates/gitignores
``` ```
...@@ -111,14 +113,16 @@ Example response: ...@@ -111,14 +113,16 @@ Example response:
Get a single `.gitignore` template. Get a single `.gitignore` template.
``` ```plaintext
GET /templates/gitignores/:key GET /templates/gitignores/:key
``` ```
| Attribute | Type | Required | Description | | Attribute | Type | Required | Description |
| ---------- | ------ | -------- | ----------- | | ---------- | ------ | -------- | ------------------------------------ |
| `key` | string | yes | The key of the `.gitignore` template | | `key` | string | yes | The key of the `.gitignore` template |
Example request:
```bash ```bash
curl https://gitlab.example.com/api/v4/templates/gitignores/Ruby 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