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’]
]