{
"operationMetadata" : {
"targetScope" : "ALL",
"targetPipeline" : "REQUEST",
"deploy" : true,
"deployTargetEnvironmentNameList": [
"test", "prod"
],
"order" : 1
},
"policy" : {
"type" : "policy-script",
"name" : "Sample1",
"description" : "Sample description 1",
"executionType" : "SYNC",
"scriptLanguage" : "GROOVY",
"scriptBody" : "write escaped groovy code here"
}
}
CODE
{
"operationMetadata" : {
"targetScope" : "ENDPOINT",
"targetEndpoint" : "/api/v1/orders",
"targetEndpointHTTPMethod" : "POST",
"targetPipeline" : "REQUEST",
"deploy" : true,
"deployTargetEnvironmentNameList": [
"test", "prod"
],
"order" : 1
},
"policy" : {
"type" : "policy-script",
"name" : "Sample2",
"description" : "Sample description 2",
"executionType" : "ASYNC",
"scriptLanguage" : "JAVASCRIPT",
"scriptBody" : "write escaped javascript code here"
}
}
CODE