flask-restx
flask-restx copied to clipboard
Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
Having `__getitem__` does not mean you can do dict unpacking (**obj) Related to old bug: https://github.com/flask-restful/flask-restful/issues/324
Raw object has __schema_format__ class-level property that is used while constucting jsonschema. Making it configurable while describing an obj allows to avoid constructing empty python classes that overrides just one...
Solution proposal for #196 The flask_restx.Api class provides an apikey_preauthorization decorator allowing to register a function returning wether or not preauthorization is wanted. In the case where preauthorization is wanted,...
Solution proposal for #196 This configuration key is designed to contain a function returning - False if no preauthorization needed/wanted - A tuple(authorization_name, key) if preauthorization wanted The documentation is...
This might be related to the recent wildcard field changes, e.g. #24. When using a wildcard field with nested models, the resulting documentation contains three levels: `*`, ``, and the...
### Summary The unit test case "EmailTest.test_invalid_values_check" fails because the `not-found .fr` was registered a few weeks ago and doesn't throw a `ValueError` exception anymore. This affects the CI process....
This PR fixes https://github.com/python-restx/flask-restx/issues/602. Lint fix also included.
I'm hoping I'm just missing something, but as our project grows, we're trying to keep the documentation as easy to use as we can. One way we do this is...
```python class World(Resource): @api.marshal_with(bay_model, headers={"x-my-header": "description"}) def get(self, id): reuturn {"hello": "world"} ``` ### **Repro Steps** (if applicable) 1. Use a response specific header with marshal_with 2. Get an unexpected...
**Ask a question** I have a simple route like ``` @ns_async.route('/async') class AsyncResource(Resource): async def post(self,): await somefunction() return jsonify({ 'status': 'success' }), 200 ``` when this route is called,...