Allow default query and endpoint to be passed in as URL params