---
title: "Get editorconfig definition"
method: GET
path: "/repos/{owner}/{repo}/editorconfig/{filename}"
tags: ["Repositories"]
---

# Get editorconfig definition

`GET /repos/{owner}/{repo}/editorconfig/{filename}`

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

## Path parameters

- `owner` string, required
- `repo` string, required
- `filename` string, required

## Response `200`

Success

- EditorConfigDefinition
  - `charset` string
  - `indent_style` string
  - `indent_size` string
  - `end_of_line` string

## Other responses

- `404` — No editorconfig file exists or no matching definition for the filename.

---

[API](https://skmtc.net/gogs/apis/gogs-api.md) · [All operations](https://skmtc.net/gogs/apis/gogs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gogs/gogs-api/revisions/87e2da32266c/schema)
