cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to give a prefix to activiti rest api spring boot?

feiya200
Champ in-the-making
Champ in-the-making
So I added the dependency to my spring-boot application and it maps all the APIs to the root such as http://localhost:8080/repository/deployments

But is there a way to give it a prefix so it can stand out a bit more to avoid conflict? like http://localhost:8080/someprefix/repository/deployments

Many thanks
2 REPLIES 2

feiya200
Champ in-the-making
Champ in-the-making
Also, it looks like activiti-diagram-rest is not integrated with activiti-spring-boot-starter-rest-api is it?

I want to display process diagram in my app. Right now I copied the html/js diagram-viewer from webapp-explorer2 module. Is it the recommended way to do it?

warper
Star Contributor
Star Contributor
is there a way to give it a prefix
Take a look at spring configuration and server extensions configuration. REST servlets has configuration for content root. For example, part of web.xml can look like this:
  <servlet-mapping> 
    <servlet-name>RestletServlet</servlet-name> 
    <url-pattern>/someprefix/*</url-pattern> 
  </servlet-mapping>

In jboss application server you can make specific file for replace war name:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
    <context-root>someprefix</context-root>
</jboss-web>