Commit c4e0b4ed authored by 六幻's avatar 六幻
Browse files

should use GET rather than PUT when get a tree of a projecct

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -132,7 +132,7 @@ public class RepositoryApi extends AbstractApi {
* @throws GitLabApiException
*/
public List<TreeItem> getTree (Integer projectId) throws GitLabApiException {
ClientResponse response = put(ClientResponse.Status.OK, null, "projects", projectId, "repository", "tree");
ClientResponse response = get(ClientResponse.Status.OK, null, "projects", projectId, "repository", "tree");
return (response.getEntity(new GenericType<List<TreeItem>>() {}));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment