files
Retrieve a file from a repository
Retrieves information about a specified file in a repository. This includes information like the name, size, and the file contents. File content is Base64 encoded.
get/api/v4/projects/{id}/repository/files/{file_path}
Request
- Base URLhttps://gitlab.com
- Authnone 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 a file from a repository
Changes
No recorded changes to this operation across all 5 revisions of this API.