Groovy Script
Explanation
This script performs the following operations:- API Call: Makes HTTP request to Yahoo Weather API
- JSON Parse: Parses JSON response
- Data Extraction: Extracts weather information
- Data Transmission: Transmits this information to backend as header, URL parameter, or body
- Error Management: Transmits error information in case of error
This script should be run on the request line (Request Policy) because it uses the
requestHeaderMapToTargetAPI and requestUrlParamMapToTargetAPI variables.
