Apinizer Documentation Tutorials Current: Groovy Usage Groovy Usage Groovy code snippets used for Script Policy;Example 1: Copying the Value from the Body to the Header FieldExample 2: API CallExample 3: API Call (x-www-form-urlencoded)Example 4: Preparing and Sending SOAP Message with XmlSlurperExample 5: JsonSlurper. Adding New Field to REST Body and Using Existing Field with JsonSlurperExample 6: Sending a Mail with JSON Format MessageExample 7: Sending Mail over SOAP MessageExample 8: Parse XML Data and Generate JSON Message with API CallExample 9: Parsing SOAP messages and tampering with fields with XmlSlurperExample 10: Reading Request URL Path and Changing Backend AddressExample 11: Changing an Xml Node's LevelExample 12: JsonSlurper. Returning specific error status code and a template according to the return messageExample 13: Quotation ("") Cleanup Script from JsonExample 14: Merging Two ServicesExample 15: DB2-API Masked Transmission of Data in a Web Service Response To see what can be done with (i.e. StringUtils) imported libraries, this link can be checked. ×