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.

Get the EditorConfig definitions of a file in a repository

GET
/repos/{owner}/{repo}/editorconfig/{filepath}
curl --request GET \
--url https://gitea.com/api/v1/repos/example/example/editorconfig/example \
--header 'Authorization: Basic <credentials>'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

filepath
required
string

Filepath of file to get

ref
string

The name of the commit/branch/tag. Default to the repository’s default branch.

Success

APINotFound is a not found empty response