Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
applications:swagger_filter [2019/04/05 11:54] admin |
applications:swagger_filter [2019/04/05 11:54] admin |
||
---|---|---|---|
Line 2: | Line 2: | ||
~~Title: REST API Filter~~ | ~~Title: REST API Filter~~ | ||
- | If you use [[https://swagger.io/tools/swagger-ui/|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: | + | If you use [[https://swagger.io/tools/swagger-ui/|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: |
- | It will replace the **host** and **basePath** with current information: | + | |
<file xml> | <file xml> | ||
Line 11: | Line 10: | ||
<async-supported>true</async-supported> | <async-supported>true</async-supported> | ||
</filter> | </filter> | ||
+ | | ||
<filter-mapping> | <filter-mapping> | ||
<filter-name>RestApiFilter</filter-name> | <filter-name>RestApiFilter</filter-name> |