add method to add query string to endpoint