Proxy Support

Typically, an App sends calls directly to the API server specified via the serviceUrl property. However, if desired, an App can choose to route calls through a named proxy.


If the App sets the proxyUrl property, cui.js will append that URL segment to the API Server URL that is otherwise constructed using the serviceUrl property. This alteration to the URL will occur on every call.

 var myCuiJs = cui.api({
    defs: [{...}],
    serviceUrl: 'PRD',
    proxyUrl: 'apiproxy'

In the example above, all URL calls would start with, followed by the particular service URL being invoked.