flask-restx icon indicating copy to clipboard operation
flask-restx copied to clipboard

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask

Results 232 flask-restx issues
Sort by recently updated
recently updated
newest added

instead of: ```python from flask_restx import Resource from http import HTTPStatus from . import api class User(Resource): @api.doc( "user_get", responses={ 200: "OK", 404: "NOT FOUND" } ) @api.response( 200, "user_get",...

enhancement

https://github.com/python-restx/flask-restx/blob/88497ced96674916403fa7829de693eaa3485a08/flask_restx/api.py#L589 api.py harvests all error handlers from all namespaces, and creates a dictionary from exception to handler. However, the dictionary does not keep track of namespaces --> therefore, the namespace...

https://github.com/python-restx/flask-restx/blob/41b3b591b4be89d5d27e571dd3a75f849d4455ca/flask_restx/namespace.py#L61 Setting a `default_error_handler` on a `Namespace` does not do anything. Grepping the codebase shows that a `default_error_handler` attribute is never used (although can get set). By contrast, `Api`'s `_default_error_handler`...

After updating flask2.0.1 and restx0.5, start app.run(), the first time to open the swagger page will be very slow, about a few tens of seconds to a few minutes to...

question

**Is your feature request related to a problem? Please describe.** When a flask-restx application is deployed behind an authenticated reverse proxy (in my case, Kong Ingress on kubernetes), there's no...

enhancement

I'm looking for a way to use `api.doc()` to document a POST request which accepts any JSON body (that is to say a valid JSON body is required, doesn't matter...

question

Hi, I would like to create an **_optional_** payload field in the Swagger UI but from the RestX code I see that this is not possible. The payload field is...

question

I just ran into an opaque error due to the fact that flask-restx imports `dumps` from either ujson or json, depending on whether the [former is installed](https://github.com/python-restx/flask-restx/blob/41b3b591b4be89d5d27e571dd3a75f849d4455ca/flask_restx/representations.py#L5). The issue is...

### **Code** ```python from flask import Flask from flask_restx import Api, fields, Resource app = Flask(__name__) app.config["RESTX_VALIDATE"] = True api = Api(app) ns = api.namespace("foo", description="FooBar") @ns.route("") class Main(Resource): @ns.marshal_with(fields.List(fields.String))...

bug

I'd like add multiple examples to a list in my payload. This is what it looks like, but I'd like to have multiple "Image" values such as Image2.tif, Image3.tif etc....

question