support adding query parameters to the api endpoints