According to the Remote API docs for Java, the Remote API servlet needs to be mapped to the /remote_api URL.
If I map the servlet to a different URL, would it be possible to use the Remote API classes in a client side script? I can’t find the javadoc for this, and the examples in the above doc don’t cover this case.
In order to enable Remote API in your application, you need to add the following in your web.xml file:
As you see, in the above code snippet the
RemoteApiServletis mapped to the/remote_apiurl. However, it is not mandatory to use this url. In the mapping, you could use your own url. For example, you could have:Update: Code for the client
In the client, based on the documentation provided at Configuring Remote API on a Standalone Client, you can set the custom path by modifying the
RemoteApiOptions. For example:Hope this helps!