-
-
Notifications
You must be signed in to change notification settings - Fork 5
Resource root
Ahmad K. Bawaneh edited this page Dec 28, 2019
·
2 revisions
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.
- Home
- Quick start
- Sharing clients
-
Configuration
- Locating resource classes
- Service root
- Resource root
- Http methods
- Service method path mapping
- Service path
- Query parameters
- Path parameters
- Header parameters
- Date format
- Request body
- Request and Response mapping
- Produces and Consumes
- Success codes
- Timeout and maximum retries
- With credentials
- Custom request URL
- Global interceptors
- Default failed response handler
- Interface inheritance
- Multipart form data