cURL
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>" }
Returns the editorconfig definition for the given filename in the repository.
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Owner of the repository
Name of the repository
Filename to get the editorconfig definition for
Success