How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the API requests to be executed. It filters requests based on the response code being between 200 and 300, or if the request headers, payload, or query parameters contain the keyword "csrf" and extracts the "csrf_key" for further use.
Execute request
The template defines a single execution type where it sends a request to the API. The request includes deleting the CSRF token from the request headers, body parameters, and query parameters using the extracted "csrf_key" from the API selection filters.
Validation
After executing the request, the template validates the response received. It checks if the response code is between 200 and 300. It also validates the response payload by ensuring that it has a percentage match greater than 80% and a non-zero length.