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
8f59e88f
Commit
8f59e88f
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
2473bc22
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
pom.xml
src/main/java/com/messners/gitlab/api/RepositoryApi.java
+2
-2
src/main/java/com/messners/gitlab/api/RepositoryApi.java
with
3 additions
and
3 deletions
+3
-3
pom.xml
+
1
-
1
View file @
8f59e88f
...
@@ -2,7 +2,7 @@
...
@@ -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"
>
<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>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.
messners
</groupId>
<groupId>
com.
alibaba.platform.shared
</groupId>
<artifactId>
gitlab-api
</artifactId>
<artifactId>
gitlab-api
</artifactId>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<version>
2.0.2-SNAPSHOT
</version>
<version>
2.0.2-SNAPSHOT
</version>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/messners/gitlab/api/RepositoryApi.java
+
2
-
2
View file @
8f59e88f
...
@@ -129,10 +129,10 @@ public class RepositoryApi extends AbstractApi {
...
@@ -129,10 +129,10 @@ public class RepositoryApi extends AbstractApi {
*
*
* @param projectId
* @param projectId
* @return a tree with the directories and files of a project
* @return a tree with the directories and files of a project
* @throws GitLabApiException
* @throws GitLabApiException
*/
*/
public
List
<
TreeItem
>
getTree
(
Integer
projectId
)
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
>>()
{}));
return
(
response
.
readEntity
(
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