-
I have a project where a REST API is defined inside a blueprint so that the flask application may be shipped with or without the API. To create the FlaskApiSpec, you have to pass the Flask app object …
-
I have this sample app
```py
from flask import Flask, jsonify
from flask_smorest import Api, Blueprint as SmorestBlueprint
# Initialize Flask app
app = Flask(__name__, subdomain_matching=True…
-
Flask allows method view decoration through a `decorators` attribute:
```
class UserAPI(MethodView):
decorators = [user_required]
```
https://flask.palletsprojects.com/en/2.0.x/views/#dec…
-
Maybe my design choices are flawed so feel free to correct me. My goal was to be able to assign URLs to several resources while keeping them in the same namespace. Thus I used blueprints which work gr…
-
code like this
```python
from flask_restful import Resource, Api
from flask import Blueprint
bar_bp = Blueprint("bar", __name__, url_prefix="/v1")
api = Api(bar_bp)
@api.resource('/foo')…
-
I'm trying to add flask-admin to the project:
[![enter image description here][1]][1]
I'm trying to extend the flask-base project https://github.com/hack4impact/flask-base/tree/master/app. This…
-
I'm using flask-jwt-extended for JWT handling and enabled CSRF protection.
### **Code**
*app.py*
```python
from flask_restx import Api, Resource
from flask import Flask, Blueprint
from flask_j…
-
There seem to be a problem with updated requests library on Google App Engine.
```
Exception on /_social/callback/Github [GET]
Traceback (most recent call last):
File "/base/data/home/apps/s~flask…
-
### **Code**
```python
from quart import Blueprint, Quart
from flask_restplus import Api
blueprint = Blueprint('api', __name__)
api = Api(blueprint)
app = Quart(__name__)
app.register_bluep…
-
Recent updates of core packages seem to break many things.
I receive errors such as follows:
```shell
File "/home/ubuntu/.local/lib/python3.8/site-packages/flask_apispec/extension.py", line…