Skip to content

Resource root

Ahmad K. Bawaneh edited this page Dec 28, 2019 · 2 revisions

Resource root

By default when a service is mapped using the default service root it will be mapped to the resource root as service meaning that it will be mapped to an endpoint path that starts with service. we can override this using DominoRestConfig :

DominoRestConfig.getInstance()
                .setDefaultResourceRootPath("endpoint");

now when a service is mapped to default service root it will be mapped to for example http://localhost:8080/endpoint/{path from method @Path annotation}

The resource root path will only work with default service root, and will be ignored for services that override the service root or when we override the service root globally.