Skip to content

Get the EditorConfig definitions of a file in a repository

GET
/repos/{owner}/{repo}/editorconfig/{filepath}
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 the repository’s default branch (usually master)

Definitions

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}

APINotFound is a not found error response

Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{
"errors": [
"example"
],
"message": "example",
"url": "example"
}