flask-restx
flask-restx copied to clipboard
Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
Fixes #283 and #409.
### **Code** ```python @staticmethod @ns_api.marshal_list_with(partial_club_fields, envelope="clubs") def get(user_id): return User.query.filter_by(id=user_id).first_or_404().clubs ``` ### **Expected Behavior** Should produce something like this: ```json { "clubs": [ { "id": "string", "name": "string", "description": "string"...
### **Code** ``` crm_bp = Blueprint("crm", __name__, url_prefix="/api/v1/crm", subdomain="") crm_api = Api(crm_bp) crm_api.representations = { "application/json": output_json, } ns = Namespace("crm_entity", path="/entity", api=crm_api) ``` ### **Repro Steps** (if applicable) Now...
Im using flask_restx for swagger API's. The versions are as follows: ``` python - 3.8.0 flask - 2.0.2 flask_restx - 0.5.1 ``` The following is the nested json I need...
I'm using a swagger ui generated from the swagger-ui repo. I've created a static folder, into which I've put the dist css and js, and I've made a templates folder,...
Format datetime with custom format, like: ``` model = api.model('Todo', { 'id': fields.Integer(readonly = True), 'name': fields.String('Buy milk'), 'created_at': fields.DateTime(dt_custom_format = '%Y-%m-%dT%T.%fZ', readonly = True) } )
Is there any way where we can add swagger documentation for `flask websocket`. If not then is there any way where we can pass swagger json from some function that...
Thank you for forking this project. It does not seem like this issue is addressed yet nor did I see an existing issue mentioning it, so porting it over to...
Fixed issue related to topic 'Exception data is returned instead of custom error handle data'. Related issues: python-restx#33 python-restx#27 python-restx#103 python-restx#102 Now it first looks for an error message from...
Closes #373