• Apinizer Documentation
  • Apinizer Documentation
  • Apinizer Documentation
  • Apinizer Documentation
  • Topics
  • Apinizer Home
  • Türkçe Doküman
  • 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 Field
  • Example 2: API Call
  • Example 3: API Call (x-www-form-urlencoded)
  • Example 4: Preparing and Sending SOAP Message with XmlSlurper
  • Example 5: JsonSlurper. Adding New Field to REST Body and Using Existing Field with JsonSlurper
  • Example 6: Sending a Mail with JSON Format Message
  • Example 7: Sending Mail over SOAP Message
  • Example 8: Parse XML Data and Generate JSON Message with API Call
  • Example 9: Parsing SOAP messages and tampering with fields with XmlSlurper

  • Example 10: Reading Request URL Path and Changing Backend Address

  • Example 11: Changing an Xml Node's Level

  • Example 12: JsonSlurper. Returning specific error status code and a template according to the return message

  • Example 13: Quotation ("") Cleanup Script from Json
  • Example 14: Merging Two Services
  • Example 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.

Apinizer Documentation Logo
Türkçe Doküman
Copyright © 2023 Apinizer • Powered by Scroll Viewport and Atlassian Confluence