Retrieve a raw file from a repository
GET
/api/v4/projects/{id}/repository/files/{file_path}/raw
Retrieves the raw file contents for a specified file in a repository.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
string
The project ID
Example
gitlab-org/gitlab file_path
required
string
The URL-encoded path to the file.
Example
lib%2Fclass%2ErbQuery Parameters
Section titled “ Query Parameters ” ref
string
The name of branch, tag or commit
Example
main lfs
boolean
Retrieve binary data for a file that is an lfs pointer
Responses
Section titled “ Responses ”OK
Bad Request
Not Found