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
34a3a12f
Commit
34a3a12f
authored
Aug 27, 2017
by
Greg Messner
Browse files
Fixd getGroup(String groupPath).
parent
117e13a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GroupApi.java
View file @
34a3a12f
...
...
@@ -159,18 +159,18 @@ public class GroupApi extends AbstractApi {
public
Group
getGroup
(
Integer
groupId
)
throws
GitLabApiException
{
return
getGroup
(
groupId
.
toString
());
}
/**
* Get all details of a group.
*
* GET /groups/:id
*
* @param
id "The ID or URL-encoded path of the group owned by the authenticated user."
* @return the Group instance for the specified group
ID
* @param
groupPath the path of the group to get details for
* @return the Group instance for the specified group
path
* @throws GitLabApiException if any exception occurs
*/
public
Group
getGroup
(
String
id
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
null
,
"groups"
,
id
);
public
Group
getGroup
(
String
groupPath
)
throws
GitLabApiException
{
Response
response
=
get
(
Response
.
Status
.
OK
,
null
,
"groups"
,
urlEncode
(
groupPath
)
);
return
(
response
.
readEntity
(
Group
.
class
));
}
...
...
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