able to successfully make api call to get district and legislator data