I have a question on the versioning of uploaded applications. Assume the application "myApp.m" uploaded in the folder Base/Applications. An APIFunction is created:
thefunc=APIFunction[{"a"->String},Needs["myApp"];myApp
someFunc[#a]]
Then we deploy myObj=CloudDeploy[thefunc]
We get the URL, say url1.
Now we upload a new version of "myApp.m"
What I experienced:
- url1 points to the old version of the app.
- In order to get the url that points to the new version we need to re-define "theFunc" and re-deploy "myObj"
- This generates a new URL, say url2.
- This means that all users of the API need to be informed about the url change.
Questions:
- Is there a way to avoid this and have the original URL (url1) pointing to the latest version
- What happens to the old versions of the APIFunction: are there somehow going to pollute the system, or are they overwritten.
JP