I would like to define my own API to Sugar instances via a Module Loader module. How can I define my own SOAP/REST API in a SugarCRM module without using the chdir command?
In the documentation, the way it is explained, to extend the REST APIs in an upgrade-safe manner includes the chdir command: http://developers.sugarcrm.com/docs/OS/6.1/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%202%20Application%20Framework.html#9001337
However the chdir command is banned by installations that use Module Loader restrictions: http://developers.sugarcrm.com/wordpress/2009/08/14/module-loader-restrictions/
Having a chdir command in the code is not allowed when these restrictions are switched on, which is the case for example for Sugar on Demand instances.
Are there any other ways to define custom REST APIs? How can I add REST APIs to SugarCRM via using a module only? Thank you.