Custom API - post Method
Summary
Custom API - post MethodContent
Hi,
I created a custom API which has an endpoint with POST method to call a connector API ( connects to EBS R12). Here is the code I am using
service.post('/mobile/custom/ExpenseHeaderDetCust/HeaderDet', function (req, res) {
console.log('getting ready to call POST /mobile/custom/ExpenseHeaderDetCust/HeaderDet');
var sdk = req.oracleMobile;
var optionList = {
//uri: '/mobile/connector/ExpenseHeaderDetails'
};
var jsnObj = {
Body: {
"ExpenseCount": {
"@xmlns": "http://vis1225.dpebs-server.com:8000/webservices/rest/ExpenseCount/get_smart_exp_cnt_dtls_f",
"RESTHeader": {
"xmlns": "http://vis1225.dpebs-server.com:8000/webservices/rest/ExpenseCount/header",
"Responsibility": "SYSTEM_ADMINISTRATOR",
"RespApplication": "SYSADMIN",