flask-restx
flask-restx copied to clipboard
Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
Have lost few hours before stumbled upon solution (https://github.com/python-restx/flask-restx/issues/139) for describing parameters inside `api.doc` decorator via `dict`. Wanted to to spare the time for the next one searching.
Hello. This PR will allow developers to automate the creation of API models while keeping customization possible. **PS:** There is already an open PR that attempts to solve the same...
I have the following model definition ```python self.root_model_generation_payload_stable = api.model('ModelPayloadRootStable', { 'sampler_name': fields.String(required=False, default='k_euler_a',enum=["k_lms", "k_heun", "k_euler", "k_euler_a", "k_dpm_2", "k_dpm_2_a", "k_dpm_fast", "k_dpm_adaptive", "k_dpmpp_2s_a", "k_dpmpp_2m", "dpmsolver"]), 'toggles': fields.List(fields.Integer,required=False, example=[1,4], description="Obsolete Toggles used...
[Flask Talisman](https://pypi.org/project/flask-talisman/#content-security-policy) is often used to secure a flask application. If Flask Talisman is added to a Flask Restx project, the Swagger UI is no longer rendered in any modern...
Hi, I am using `flask-restx` to build an app which receives a JSON-formatted string via a POST request. Currently, the relevant piece of code in the app reads: ``` api...
Changelog: - set add_spec to False if api.Api initted with doc=False Fixes #116
This PR Enables Oauth2 Auth Code Flow with PKCE In Swagger UI
Add an example of usage from curl-cli for the full example at https://flask-restx.readthedocs.io/en/latest/example.html and force json usage in payload, according to suggestions in https://github.com/python-restx/flask-restx/issues/248.
Using custom converters to store the '\_\_restx_schema\_\_' dict. The dict updates the parameter for swagger. Tested with (and without): ``` class DatabaseConverter(BaseConverter): __restx_schema__ = {'type': 'string', 'enum': ['ProdDB','TestDB1','TestDB2']} ``` The...
Found this TODO and refactored it a bit