Commit e970cfae authored by Denny Ayard's avatar Denny Ayard Committed by Greg Messner
Browse files

getGroup overloaded to support path argument (#55)

parent 83f72572
...@@ -156,9 +156,22 @@ public class GroupApi extends AbstractApi { ...@@ -156,9 +156,22 @@ public class GroupApi extends AbstractApi {
* @return the Group instance for the specified group ID * @return the Group instance for the specified group ID
* @throws GitLabApiException if any exception occurs * @throws GitLabApiException if any exception occurs
*/ */
public Group getGroup(int groupId) throws GitLabApiException { public Group getGroup(Integer groupId) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "groups", groupId); return getGroup(groupId.toString());
return (response.readEntity(Group.class)); }
/**
* 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
* @throws GitLabApiException if any exception occurs
*/
public Group getGroup(String id) throws GitLabApiException {
Response response = get(Response.Status.OK, null, "groups", id);
return (response.readEntity(Group.class));
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment