REST Interface Configuration

<< Click to Display Table of Contents >>

Current:  Advanced Analytics > WEB Service 

REST Interface Configuration

Previous pageReturn to chapter overviewNext page

To use the  analysis of the REST interface function, you need to configure the product first, as follows:

 

Interface Environment Configuration

1.Find in the installation directory of Yonghong product: Yonghong/tomcat/webapps /bi/WEB-INF/web.xml and add the following code:

   <servlet>

         <servlet-name>YonghongRESTAPI</servlet-name>

         <servlet-class>g5.sv.restful.api.YonghongRESTAPI</servlet-class>

   </servlet>

   <servlet-mapping>

         <servlet-name>YonghongRESTAPI</servlet-name>

         <url-pattern>/rest/*</url-pattern>

   </servlet-mapping>

2. In this way, the api environment is deployed, and the tomcat server can be started or restarted. (Linux should kill the process first).