21 Jun 2022 08:06 AM - last edited on 22 Jun 2022 02:06 AM by MaciejNeumann
I would like to create request naming rule
Now my Env have many request in one service such as
So, i need to group these to "API Products"
Which i have been used this condition "/api/products/store/:storeId/category/:categoryId" but result is not ok
Please provide as i need
Thank you very much.
Solved! Go to Solution.
This should be able to be achieved through the settings for the service. As shown in the below picture if you navigate to the web request naming rules page for your service you should be able to add rules for naming them.
My example rule looks like this.
And the outcome of the rule looks like this.
For more information there is a documentation page for this as well.
Yesterday i have been used this solution as you provided.
Incase normally i can used this step, but if i need to use this parameter ("/api/products/store/:storeId/category/:categoryId") in condition rule for create web request naming rule please provide solution.
Ah I see, for something more specific I would then suggest using regex. My example below isn't great but it should give you an idea of where to start. In place of :storeId and :categoryId you would use some expression to match just numbers of a certain length.
Here are a few sites if you need a hand creating and testing regex expressions.
And then Dynatrace also has some docs on Dynatrace specific regex.