How this template works
APIs Selection
The API selection filters in this template specify the criteria for selecting the API endpoints to be tested. In this case, the filters include checking that the response code is between 200 and 299 (indicating a successful response) and using a regular expression to match URLs that contain a version number greater than or equal to 2.
Execute request
The execute section of the template defines the actions to be performed on the selected API endpoints. In this case, it includes modifying the URL of the request by replacing the version number with "v1". This is done using a regular expression replacement.
Validation
The validation section specifies the criteria for validating the responses received from the modified requests. In this template, the validation includes checking that the response code is between 200 and 299 and ensuring that the endpoint is not considered in the traffic context.