Is restarting after adding rest endpoints necessary?

Hi,

We’re developing a custom REST api in java for some specific content we use and putting this in a extention.
It is extending the rest-server with XWikiResource.

Everytime we update our or add new endpoints, we have to restart xwiki. Is this step always needed? Or are there ways to load a new extention and use the endpoints without restart.

Thanks,
Maarten

It’s not very clear to me what you exactly mean. When you install a new extension which contains a REST endpoint you don’t need to restart. AFAIK it’s true for upgrades too.

But it’s safer to make sure your extension is installed “On Farm” to be sure that the REST endpoint will always be found. You can force Extension Manager to install your extension on root using a Maven property, see for example https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-rest/pom.xml#L35.