/*
    Orijinal Request:
    {
      "ad":"Apinizer"
    }
*/
import groovy.json.JsonSlurper
import groovy.json.JsonOutput

def jsonSlurper = new JsonSlurper()

def jsonMessage = jsonSlurper.parseText(requestBodyTextFromClient)

jsonMessage.put("tamAd", jsonMessage.ad + " Api Management")

requestBodyTextToTargetAPI=JsonOutput.toJson(jsonMessage)


/*
    Yeni Request:
    {
      "ad":"Apinizer",
	  "tamAd":"Apinizer Api Management"
    }
*/
GROOVY