Category "flask-restx"

Flask restx api model not showing model data

I have a model as follows: class Menu(db.Model): itemId = db.Column(db.Integer,primary_key=True) name = db.Column(db.String(255),index=True) price =

flask-restplus /flask-restx automatically add 401 response to Swagger docs if authentication is on

As the title mentions, I would like to have a @api.response(401, 'Unauthenticated') response added to the documentation of all APIs which require authentication

Python Flask_restplus flash_restx dynamic marshalling response

Is it possible to dynamicaly modify the marshalled response model (ie : change fields list, add mask, ...) ? ex : from flask_restplus import Resource, fields m

Flask-restx request parser returns 400 Bad Request

I'm using flask-restx in my flask application but each time I use the swagger ui to make a request it returns this 400: http://127.0.0.1:5000/api/user/register/