Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. 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

Name is the name of the gitignore template

string
source

Source contains the content of the gitignore template

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

APINotFound is a not found empty response