• Apinizer Documentation
  • Apinizer Documentation
  • Apinizer Documentation
  • Apinizer Documentation
  • Topics
  • Apinizer Home
  • Türkçe Doküman
  • Apinizer Documentation
  • How-to Guides
  • How-to Guides for Developers
  • Current: Groovy Usage (Script Policy)

Groovy Usage (Script Policy)

Groovy code snippets used for Script Policy;

Basic Examples of Groovy
Copying the Value from the Body to the Header Field
Making an API Call and Processing the Result
API Call (x-www-form-urlencoded)
Parsing SOAP messages and tampering with fields with XmlSlurper
JsonSlurper Adding New Field to REST Body and Using Existing Field with JsonSlurper
Sending a Mail with JSON Format Message
Sending Mail over SOAP Message
Parse XML Data and Generate JSON Message with API Call
Preparing and Sending SOAP Message with XmlSlurper
Reading Request URL Path and Changing Backend Address
Changing an Xml Node's Level
JsonSlurper Returning specific error status code and a template according to the return message
Quotation ("") Cleanup Script from Json
Merging Two Services
DB2API Masked Transmission of Data in a Web Service Response
Script to Extract Data from the JSON Payload of a Given JWT Key
Usage of basic map and foreach loop
Turkish Identification Number Validation in JSON Format
Converting Json Request Data to Form Data
SOAP Message Signature Validation with Client's Certificate
SOAP Message Sign with Private Key
Disabling SSL Certificates for PKIX Error Resolution
OIDC Integration
XML to JSON Conversion and Normalization of Unicode Characters
Adding a Missing Element to a Child Element in an XML Body

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 © 2025 Apinizer • Powered by Scroll Viewport and Atlassian Confluence