add doc generation support for QueryParams and QueryFlag