code: func SearchDashboardSnapshots(c *m.ReqContext) Response {
  	query := c.Query("query")
  	limit := c.QueryInt("limit")
  
  	if limit == 0 {
  		limit = 1000
  	}
  
  	searchQuery := m.GetDashboardSnapshotsQuery{
  		Name:         query,
  		Limit:        limit,
  		OrgId:        c.OrgId,
  		SignedInUser: c.SignedInUser,
  	}
  
  	err := bus.Dispatch(&searchQuery)
  	if err != nil {
  		return Error(500, "Search failed", err)
  	}
  
  	dtos := make([]*m.DashboardSnapshotDTO, len(searchQuery.Result))
  	for i, snapshot := range searchQuery.Result {
  		dtos[i] = &m.DashboardSnapshotDTO{
  			Id:          snapshot.Id,
  			Name:        snapshot.Name,
  			Key:         snapshot.Key,
  			OrgId:       snapshot.OrgId,
  			UserId:      snapshot.UserId,
  			External:    snapshot.External,
  			ExternalUrl: snapshot.ExternalUrl,
  			Expires:     snapshot.Expires,
  			Created:     snapshot.Created,
  			Updated:     snapshot.Updated,
  		}
  	}
  
  	return JSON(200, dtos)
  }
docs: // GET /api/dashboard/snapshots