Skip to content

Retrieve a .gitignore template

GET
/api/v4/templates/gitignores/{name}

Retrieves a specified .gitignore template.

name
required
string

The name of the .gitignore template

OK

Media type application/json
object
name
string
content
string
Example
{
"name": "Ruby",
"content": "# Ruby gitignore template"
}

Bad Request

Not Found