1>Could you please explain what you mean by - the polling API is getting stripped from the api.js. Some configs/code etc would help.
2>Could you also explain what do you have to do when the server api changes? The direct API url in designer loads each time you open the project with a direct API set so you should see the new api in the directFn.
When you look at the source for designer.html, you will see this:
Note the missing Ext.app.POLLING_URLS.
When I add another method on the server, the API URL returns the new content immediately, but the designer.html source stays the same after saving. To get it to update, I have to change the Ext Direct URL by adding a parameter to the query string. This forces designer to reload it. For example, I will change it from http://127.0.0.1:8080/sp/c/api.js to http://127.0.0.1:8080/sp/c/api.js?v=2Thanks!
Any update on this? BTW, I am perfectly happy to configure this elsewhere in the app. I just need to know that that is what you want developers to do... It would be nice to have some refresh icon next to the url to force it to reload the api.
Does it make sense to define all of the ExtDirect api (and polling) in the Application init and not use the Designer to specify the URL? Is there any disadvantage to that approach?