cancel
Showing results for 
Search instead for 
Did you mean: 

Web services custom path

Former Member
0 Kudos

Hello to everybody,

I would like to set up a service which should be accessible using the path /rest/myservice (without the base site name); is it enough to configure this way @ RequestMapping(value = "/myservice")? Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When you add such mapping to your controller, you will have it under "rest/v2/myservice" resource (assuming it is version 2 controller). To get rid of "v2" part you also need to change the configuration of v2 servlet.

Answers (1)

Answers (1)

Former Member
0 Kudos

Great! Thank you very much Lukasz, you have been very helpful!