Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom API - post Method

edited Mar 23, 2017 7:00AM in Digital Assistant & Mobile 27 comments

Summary

Custom API - post Method

Content

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",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!