support query parameters

Many GET endpoints require query parameters. This diff supports them.