Skip to content

Commit 34a3a12

Browse files
committed
Fixd getGroup(String groupPath).
1 parent 117e13a commit 34a3a12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/main/java/org/gitlab4j/api/GroupApi.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,18 @@ public Pager<Project> getProjects(int groupId, int itemsPerPage) throws GitLabAp
159159
public Group getGroup(Integer groupId) throws GitLabApiException {
160160
return getGroup(groupId.toString());
161161
}
162-
162+
163163
/**
164164
* Get all details of a group.
165165
*
166166
* GET /groups/:id
167167
*
168-
* @param id "The ID or URL-encoded path of the group owned by the authenticated user."
169-
* @return the Group instance for the specified group ID
168+
* @param groupPath the path of the group to get details for
169+
* @return the Group instance for the specified group path
170170
* @throws GitLabApiException if any exception occurs
171171
*/
172-
public Group getGroup(String id) throws GitLabApiException {
173-
Response response = get(Response.Status.OK, null, "groups", id);
172+
public Group getGroup(String groupPath) throws GitLabApiException {
173+
Response response = get(Response.Status.OK, null, "groups", urlEncode(groupPath));
174174
return (response.readEntity(Group.class));
175175
}
176176

0 commit comments

Comments
 (0)