Drop query parameters when one requests a document as we don't use them. Fixes invocation using swagger descriptions