REST Services - is there a way to change or shorten the URI?

Posted by Ciara Coleman on 21-Apr-2016 04:55

Hi there,

I have created a REST web service via PSDOE but have published it to Tomcat directly via exporting the WAR file as opposed to via the RestMgr1.

The URI format for accessing a REST resource on the service is as follows:

http://[IP_ADDRESS]:8980/API/rest/API/[RESOURCE_NAME]

Is there any way to change this to allow me to access my resources like this instead?

http://[IP_ADDRESS/API/[RESOURCE_NAME]

I have tried using context xml files and Tuckey URL rewrite but when I try to access any of my REST resources on the shortened URI both are causing authorisation issues (login box pops up and none of the default username/password combinations work).

Any help with this would be hugely appreciated!

Many thanks,

Ciara

All Replies

This thread is closed