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
c4e0b4ed
Commit
c4e0b4ed
authored
May 13, 2015
by
六幻
Browse files
should use GET rather than PUT when get a tree of a projecct
parent
c5be44ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/RepositoryApi.java
View file @
c4e0b4ed
...
...
@@ -132,7 +132,7 @@ public class RepositoryApi extends AbstractApi {
* @throws GitLabApiException
*/
public
List
<
TreeItem
>
getTree
(
Integer
projectId
)
throws
GitLabApiException
{
ClientResponse
response
=
pu
t
(
ClientResponse
.
Status
.
OK
,
null
,
"projects"
,
projectId
,
"repository"
,
"tree"
);
ClientResponse
response
=
ge
t
(
ClientResponse
.
Status
.
OK
,
null
,
"projects"
,
projectId
,
"repository"
,
"tree"
);
return
(
response
.
getEntity
(
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