Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
10 years ago
by
六幻
Browse files
Options
Download
Email Patches
Plain Diff
should use GET rather than PUT when get a tree of a projecct
parent
c5be44ba
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/messners/gitlab/api/RepositoryApi.java
+1
-1
src/main/java/com/messners/gitlab/api/RepositoryApi.java
with
1 addition
and
1 deletion
+1
-1
src/main/java/com/messners/gitlab/api/RepositoryApi.java
+
1
-
1
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
>>()
{}));
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets