API UrlRule query string not working in API

Hi, I built an api would like to pass query string but my urlRule is not working.
I would like to get something
api/customers
api/customers/check?country=usa
api/customers/check?country=usa&age=30

'urlManager' => [

‘enablePrettyUrl’ => true,
‘enableStrictParsing’ => true,
‘showScriptName’ => false,
‘rules’ => [
[‘class’ => ‘yii\web\UrlRule’,‘pattern’ => ‘v1/customers/check?country:\d+&age:\d+’,‘route’ => ‘v1/customers’],
[‘class’ => ‘yii\web\UrlRule’,‘pattern’ => ‘v1/customers/check?country:\d+’,‘route’ => ‘v1/customers’],
[‘class’ => ‘yii\web\UrlRule’,‘pattern’ => ‘v1/customers’,‘route’ => ‘v1/customers’]
]

Did you try this?
api/customers/check/country/usa
api/customers/check/country/usa/age/30

or just
enablePrettyUrl’ => false

Thanks… this worked but I wanted to have query for the end part. I use swagger and using mix of path and query string. Imagine this v1/customers/data/start/timestamp/end/timestamp it looks ugly, wouldn’t it better if we have v1/customers/data?start=timesamp&end=timestamp without changing pretty url ?

Thank you for help.