code: func GetDataSourceIdByName(c *m.ReqContext) Response {
  	query := m.GetDataSourceByNameQuery{Name: c.Params(":name"), OrgId: c.OrgId}
  
  	if err := bus.Dispatch(&query); err != nil {
  		if err == m.ErrDataSourceNotFound {
  			return Error(404, "Data source not found", nil)
  		}
  		return Error(500, "Failed to query datasources", err)
  	}
  
  	ds := query.Result
  	dtos := dtos.AnyId{
  		Id: ds.Id,
  	}
  
  	return JSON(200, &dtos)
  }
docs: // Get /api/datasources/id/:name