Documentation

Trace: REST API Filter

(applications)

REST API Filter

This is an old revision of the document!


If you use Swagger UI for REST API documentation, it's relevant to set the correct host and basePath in the specification file. To use the current host and path, simply use the integrated Filter. It will replace the host and basePath with current information:

  <filter>
    <filter-name>RestApiFilter</filter-name>
    <filter-class>com.sibvisions.apps.server.http.RestApiFilter</filter-class>
    <async-supported>true</async-supported>
  </filter>
 
  <filter-mapping>
    <filter-name>RestApiFilter</filter-name>
    <url-pattern>*.json</url-pattern>
  </filter-mapping> 

The filter only supports json format.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information