Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of 1.24.7, which is no longer the latest release. See the latest release.

Returns information about a gitignore template

GET
/gitignore/templates/{name}
curl --request GET \
--url https://gitea.com/api/v1/gitignore/templates/example \
--header 'Authorization: Basic <credentials>'
name
required
string

Name of the template

GitignoreTemplateInfo

Media typeapplication/json

GitignoreTemplateInfo name and text of a gitignore template

object
name
string
source
string
Examplegenerated
{
"name": "example",
"source": "example"
}

APINotFound is a not found empty response

Media typeapplication/json