Is there any way to retrieve folder and files in a particular branch in gerrit using rest api.Can we retrive the entire dir structure of a particular project.
According to gerrit documentation https://gerrit-review.googlesource.com/Documentation/rest-api-projects.html this query "/projects/{project-name}/branches/{branch-id}/files" should retrieve all the files and folders in a particular branch but it is throwing site can’t be reached error.
Looking at the documentation, I wasn't able to find any mention to "/projects/{project-name}/branches/{branch-id}/files" endpoint, I only found:
'GET /projects/{project-name}/branches/{branch-id}/files/{file-id}/content'
Gets the content of a file from the HEAD revision of a certain branch.
Which works as explained.
I think it's not possible to get the contents of a directory by REST.