Allows you to receive blame information. Each blame range contains lines and corresponding commit info.
```
GET /projects/:id/repository/files/:file_path/blame
```
```bash
curl --request GET --header'PRIVATE-TOKEN: <your_access_token>''https://gitlab.example.com/api/v4/projects/13083/repository/files/path%2Fto%2Ffile.rb/blame?ref=master'
```
Example response:
```json
[
{
"commit":{
"id":"d42409d56517157c48bf3bd97d3f75974dde19fb",
"message":"Add feature\n\nalso fix bug\n",
"parent_ids":[
"cc6e14f9328fa6d7b5a0d3c30dc2002a3f2a3822"
],
"authored_date":"2015-12-18T08:12:22.000Z",
"author_name":"John Doe",
"author_email":"john.doe@example.com",
"committed_date":"2015-12-18T08:12:22.000Z",
"committer_name":"John Doe",
"committer_email":"john.doe@example.com"
},
"lines":[
"require 'fileutils'",
"require 'open3'",
""
]
},
...
]
```
Parameters:
-`file_path` (required) - Url encoded full path to new file. Ex. lib%2Fclass%2Erb
-`ref` (required) - The name of branch, tag or commit
NOTE: **Note:**
`HEAD` method return just file metadata as in [Get file from repository](repository_files.md#get-file-from-repository).