{
"source": "^/BUSINESS_RULES/(.*)$",
"target": "$1",
"destination": "BUSINESS_RULES",
"authenticationType": "xsuaa"
},
/applicationID/BUSINESS_RULES/rest/v2/xsrf-token
For eg :
/nsfioriBRmodule/BUSINESS_RULES/rest/v2/xsrf-token
/applicationID/BUSINESS_RULES/rest/v2/workingset-rule-services
For eg :
/nsfioriBRmodule/BUSINESS_RULES/rest/v2/workingset-rule-services
var jsonData = {
"RuleServiceId": "XXXXXX",
"Vocabulary": [
{
"Customer": {
"CreditRating": "AAA",
"AvgOrderValue": 3000
}
}
]
}
//Then invoke the business rules service via public API
$.ajax({
url: " /nsfioriBRmodule/BUSINESS_RULES/rest/v2/workingset-rule-services",
method: "POST",
// contentType: "application/json",
data: JSON.stringify(jsonData),
async: false,
headers: {
"X-CSRF-Token": token,
"Content-Type": "application/json"
},
success: function (result1, xhr1, data1) {
if (result1 != null) {
alert("post success");
//info: the output from rules will be wrapped in result1 object, you can
// access this json object to get the output variable.
;
}
}
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
9 | |
9 | |
7 | |
7 | |
5 | |
5 | |
4 | |
3 | |
3 |