I'm serving a flask app with flask_restplus
from an apache server. I'm using ProxyPass
to forward all traffic to the app at some url extension like so in the apache .conf
file:
ProxyPass /some-extension http://127.0.0.1:3000
ProxyPassReverse /some-extension http://127.0.0.1:3000
The flask_restplus
api is set up as follows:
from flask_restplus import Api
api = Api(
title='App Title',
doc='/docs'
)
The app works ok except that when I go to the swagger route /some-extension/docs
the flask server starts looking for swagger dependencies at the url base /swaggerui/ (rather than the required /some-extension/swaggerui
), and so the swagger UI fails to load.
Is there a way to configure flask_restplus
(or otherwise) so that swagger gets served /some-extension/swaggerui/
(rather than the root url)?