Skip to main content
GET
/
repos
/
{owner}
/
{repo}
/
editorconfig
/
{filename}
Get editorconfig definition
curl --request GET \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/editorconfig/{filename} \
  --header 'Authorization: <api-key>'
{
  "charset": "<string>",
  "indent_style": "<string>",
  "indent_size": "<string>",
  "end_of_line": "<string>"
}

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Owner of the repository

repo
string
required

Name of the repository

filename
string
required

Filename to get the editorconfig definition for

Response

Success

charset
string
indent_style
string
indent_size
string
end_of_line
string