Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
8f59e88f
Commit
8f59e88f
authored
May 20, 2015
by
六幻
Browse files
should use GET rather than PUT when get a tree of a projecct
parent
2473bc22
Changes
2
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
8f59e88f
...
...
@@ -2,7 +2,7 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.
messners
</groupId>
<groupId>
com.
alibaba.platform.shared
</groupId>
<artifactId>
gitlab-api
</artifactId>
<packaging>
jar
</packaging>
<version>
2.0.2-SNAPSHOT
</version>
...
...
src/main/java/com/messners/gitlab/api/RepositoryApi.java
View file @
8f59e88f
...
...
@@ -129,10 +129,10 @@ public class RepositoryApi extends AbstractApi {
*
* @param projectId
* @return a tree with the directories and files of a project
* @throws GitLabApiException
* @throws GitLabApiException
*/
public
List
<
TreeItem
>
getTree
(
Integer
projectId
)
throws
GitLabApiException
{
Response
response
=
pu
t
(
Response
.
Status
.
OK
,
null
,
"projects"
,
projectId
,
"repository"
,
"tree"
);
Response
response
=
ge
t
(
Response
.
Status
.
OK
,
null
,
"projects"
,
projectId
,
"repository"
,
"tree"
);
return
(
response
.
readEntity
(
new
GenericType
<
List
<
TreeItem
>>()
{}));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment