code: func GetTeamByID(c *m.ReqContext) Response {
  	query := m.GetTeamByIdQuery{OrgId: c.OrgId, Id: c.ParamsInt64(":teamId")}
  
  	if err := bus.Dispatch(&query); err != nil {
  		if err == m.ErrTeamNotFound {
  			return Error(404, "Team not found", err)
  		}
  
  		return Error(500, "Failed to get Team", err)
  	}
  
  	query.Result.AvatarUrl = dtos.GetGravatarUrlWithDefault(query.Result.Email, query.Result.Name)
  	return JSON(200, &query.Result)
  }
docs: // GET /api/teams/:teamId