-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger docs not showing up when using gunicorn #781
Comments
Any update? |
Python interpreter uses |
Not works even if it is outside |
Please check the following code of the simplified application that covers the whole workflow: # filename app.py
import flask
import flask_restx
APP = flask.Flask("some-app")
api_bp = flask.Blueprint("v1_api", __name__, url_prefix="/api/v1")
API = flask_restx.Api(api_bp)
APP.register_blueprint(api_bp)
NAMESPACE = flask_restx.Namespace("info")
@NAMESPACE.route("/")
class InfoAPI(flask_restx.Resource):
def get(self):
return "something"
API.add_namespace(NAMESPACE) Should be executed as |
Code
Repro Steps (if applicable)
gunicorn -b localhost:8080 -w 4 run:app
localhost:8080/docs
Expected Behavior
When i start the app using
python run.py
the endpoints indocs
url are correct.Actual Behavior
When i start the ap using
gunicorn
thedocs
url do not show the endpointsEnvironment
The text was updated successfully, but these errors were encountered: