files

Retrieve file metadata

Retrieves metadata for a specified file in a repository.

head/api/v4/projects/{id}/repository/files/{file_path}

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The project ID

file_pathstring required

The URL-encoded path to the file.

Query parameters

refstring required

The name of branch, tag or commit

Response

Retrieve file metadata

Changes

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