def get_all_matching_students(params)
      params[:page_size] ||= 100
      count    = get_matching_students_count(params)
      pages    = calc_pages(count, params[:page_size])
      answer   = {}
      students = []
      (1..pages).each do |page|
        params[:page_number] = page
        answer    = get_matching_students_page(params)
        students << (answer.dig("students","student") || [])
      end
      # answer["students"]["student"] = students.flatten
      # return answer
      { students: students.flatten }
    end
def get_all_matching_students(params)
      params[:page_size] ||= 100
      count    = get_matching_students_count(params)
      pages    = calc_pages(count, params[:page_size])
      answer   = {}
      students = []
      (1..pages).each do |page|
        params[:page_number] = page
        answer    = get_matching_students_page(params)
        students << (answer.dig("students","student") || [])
      end
      # answer["students"]["student"] = students.flatten
      # return answer
      { students: students.flatten }
    end
return all students within the district matching the filters are passed in -- this is a Recursive search and will collect all students
 @param params [Hash] - enter a match criteria in the following format (* are allowed for wildcard matching):
     {username: "xxxxx*"} or {local_id: "12345"}
 or  {enroll_status: "x"} or {status_code: "0"}
 or  {first_name: "John"} or {last_name: "Br*"}
 or multiple field match
     {status_code: "0", last_name: "Br*"}
 @return [Hash of an Array of Student Summaries] - see below format
 {students: [
     {"id"=>4916, "local_id"=>112406, "student_username"=>"cccc406", "name"=>{"first_name"=>"Ssssss", "last_name"=>"CCCCC"}},
     {"id"=>4932, "local_id"=>112520, "student_username"=>"jjjj520", "name"=>{"first_name"=>"Ppppppp", "last_name"=>"JJJJJJJJ"}},
     {"id"=>4969, "local_id"=>112766, "student_username"=>"aaaa766", "name"=>{"first_name"=>"Sssss", "middle_name"=>"Aaaaaaaa", "last_name"=>"Aaaaaaaaaa"}}
   ]
 }
 @note - the api_path sent to the api call looks like: "/ws/v1/district/student?expansions=school_enrollment,contact&q=enroll_status==A;name.last_name==J*"