First of all, try to consider to use OOB REST functionality. It's pretty wide to cover different business needs: especially through server-side scripting (OFunction). But if you need to have your own REST API in any case: to add it is extremly easy.

Add the following snippets into pom.xml of your project.

To root project xml element:


To a list of projects:



Also make sure that you use Servlet 3.0+ compatible web container.

results matching ""

    No results matching ""