1. Domino REST
  2. Configuration
  3. Resource root

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 starts with service. we can override this using DominoRestConfig

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

		

With this configuration when a service is mapped to default service root it will be mapped to an endpoint with a path starting with the specified resource root in the config, example http://localhost:8080/endpoint/{relative resource path}

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.

We are a group of passionate people who love what we do

Donate & Support Us