Added support of query parameters for methods, #875.