added query string stuff and basic auth to the api generator