Hello, team! I am trying to filter url containing ...
# help
d
Hello, team! I am trying to filter url containing path variable and query parameter. example incomming request url: > http://localhost:8081/v1/orders/RNDTRS?name=testuser filtering it by both path and query not working by this way: >
Copy code
"request": {
>   "method": "GET",
>   "urlPathTemplate": "/v1/orders/{orderId}{?name}",
>   "pathParameters" : {
>     "orderId" : {
>       "equalTo" : "RNDTRS"
>     }
>   },
>   "queryParameters" : {
>     "name" : {
>       "equalTo":"testuser"
>     }
>   }
> },
But it is working when I change pathParameters: >
Copy code
"pathParameters" : {
>     "orderId" : {
>       "equalTo" : "RNDTR"
>     }
>   },
Looks like the last letter in last path parameter is cutted/removed. Am I correct that this is a bug or my urlPathTemplate is wrong?
r
the
urlPathTemplate
field does not need the
{?name}
part. you can remove that and it should behave as you expect