5.3.1.2. Deploying/Undeploying a REST Service

Note

This function is for users with the administrator role only.

Deploying a REST Service

  1. Save the file before deploying.

  2. Open the saved file in the Content panel.

  3. Click on the toolbar;

    Or, go to RunDeploy from the top menu.

    The deployment request is sent to the server. In case of no errors, the message is displayed in the Output tab as below:

    Otherwise, there will be an error message, for example:

Warning

  • It is impossible to deploy the service with the registered URI pattern if the path (including name) of the new service is different from the original one.

To cope with it, you have to undeploy the service with the registered URI pattern first.

  • It is necessary to validate the Groovy scripts used by the service before deploying it by going to RunValidate from the top menu.

Undeploying a Rest Service

  1. Select the service deployed in the Workspace panel.

  2. Double-click the selected service to open it in the Content panel.

  3. Click on the toolbar.

    In case of no errors, there will be a message informs undeploying successfully in the Output tab.

    You can deploy multiple REST Services, and double-deploy the services. However, you cannot undeploy services which were not previously deployed. In this case, you will receive an error message from the server as below:

Warning

Deleting the service will not make it undeploy. You have to undeploy the service before deleting it. In other cases, the workaround is to create it again in the same place and then undeploy.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus