@GET
  @Path("{privilegeId}")
  @Produces("text/plain")
  @ApiOperation(value = "Get group privilege", nickname = "GroupPrivilegeService#getPrivilege", notes = "Returns group privilege details.", response = GroupPrivilegeResponse.class)
  @ApiImplicitParams({
    @ApiImplicitParam(name = "fields", value = "Filter group privilege details", defaultValue = "PrivilegeInfo/*", dataType = "string", paramType = "query")
  })
  @ApiResponses(value = {
    @ApiResponse(code = 200, message = "Successful operation", response = PrivilegeResponse.class)}
  )
  public Response getPrivilege(@Context HttpHeaders headers, @Context UriInfo ui, @ApiParam(value = "group name", required = true) @PathParam ("groupName") String groupName,
                               @ApiParam(value = "privilege id", required = true) @PathParam("privilegeId") String privilegeId) {
    return handleRequest(headers, null, ui, Request.Type.GET, createPrivilegeResource(groupName, privilegeId));
  }
Handles: GET /groups/{groupName}/privileges{privilegeID}
Get a specific privilege for a group.

@param headers       http headers
@param ui            uri info
@param groupName     group name
@param privilegeId   privilege id
@return privilege instance representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/groups/GroupPrivilegeService.java