Hello everyone,
I want to access the files inside a project hosted in gitlab ce server 8.0 with a rest api call.
I used the below api
http://gitlabserver/api/v3/projects/<project id>/repository/tree?private_token=token id
which returns me the project with the immediate children.
for example if the project structure is A
|__ Readme.md
|__ .project
|__ src
|__ myfile
, it returns Readme.md…project and src.
As per the Gitlab api documentation if the file path is specified in the above query it should return the subfolders but I always get 404 error.
I tried below combinations,
http://<gitlab server>/api/v3/projects/<project id>/repository/tree?private_token=<token id>&file_path=path
http:///api/v3/projects/&file_path=path/repository/tree?private_token=
http://<gitlab server>/api/v3/projects/<project id>/repository/tree&file_path=path?private_token=<token id>
But it always returns 404 error. Can anyone suggest the right way to get the files inside a gitlab project.
Thanks
Santhosh