Repositories

Get editorconfig definition

Returns the editorconfig definition for the given filename in the repository.

get/repos/{owner}/{repo}/editorconfig/{filename}

Request

  • Base URL
    https://gogs.example.com/api/v1
  • Auth
    API key in header Authorization

Path parameters

ownerstring required

Owner of the repository

repostring required

Name of the repository

filenamestring required

Filename to get the editorconfig definition for

Response

Success

charsetstring
indent_stylestring
indent_sizestring
end_of_linestring

Changes

No recorded changes to this operation across all 3 revisions of this API.