We can get list of repository commits by:
GET /projects/:id/repository/commits?path=:thefilename
We can get raw file content by blob id:
GET /projects/:id/repository/blobs/:sha/raw
However, the first api doesn't return blob id of each repository commit, and there is no known api that could retrieve raw file content using commit id instead. I need to retrieve the raw file content from a past repository commit instead of only the latest commit.