Parametreler

ParametreTipZorunluVarsayılan DeğerAçıklamaKurallar
nameStringEvet-Politika adıAPI proxy içinde benzersiz olmalı
descriptionStringHayır-Politika açıklaması-
transformationTypeEnumHayırJSON2JSONDönüşüm tipi-
joltValueStringKoşullu-JOLT dönüşüm şablonutransformationType=JSON2JSON ise zorunlu
jsonToXmlIgnoreNullBooleanHayırfalseNull değerleri XML'e dönüştürürken yok saySadece JSON2XML'de kullanılır
jsonToXmlIgnoreEmptyBooleanHayırfalseBoş değerleri XML'e dönüştürürken yok saySadece JSON2XML'de kullanılır
jsonToXmlUseNullForNilBooleanHayırfalseNull değerler için nil attribute kullanSadece JSON2XML'de kullanılır
jsonToXmlUnwrapElementBooleanHayırfalseTek elemanlı dizileri unwrap yapSadece JSON2XML'de kullanılır

transformationType Değerleri

DeğerAçıklama
JSON2JSONJSON'dan JSON'a dönüşüm (JOLT kullanarak)
JSON2XMLJSON'dan XML'e dönüşüm

Örnek JSON Yapıları

1. Basit JSON-JSON Dönüşümü

{
  "operationMetadata" : {
    "targetScope" : "ALL",
    "targetPipeline" : "REQUEST",
    "deploy" : true,
	"deployTargetEnvironmentNameList": [
      "test", "prod"
    ], 
    "order" : 1
  },
  "policy" : {
	"type" : "policy-json-transformation",
    "name" : "JsonYapiDonusumu",
    "description" : "JSON veriyi yeniden yapılandırma",
    "transformationType" : "JSON2JSON",
    "joltValue" : "write escaped JOLT value here"
  }
}
CODE

2. JSON-XML Dönüşümü

 {
  "operationMetadata" : {
    "targetScope" : "ALL",
    "targetPipeline" : "REQUEST",
    "deploy" : true,
	"deployTargetEnvironmentNameList": [
      "test", "prod"
    ], 
    "order" : 1
  },
  "policy" : {
	"type" : "policy-json-transformation", 
    "name" : "JsonToXmlDonusum",
    "description" : "JSON'dan XML'e dönüşüm",
    "transformationType" : "JSON2XML",
    "jsonToXmlIgnoreNull" : true,
    "jsonToXmlIgnoreEmpty" : true,
    "jsonToXmlUseNullForNil" : true,
    "jsonToXmlUnwrapElement" : true
  }
}
CODE