flask-api-tutorial icon indicating copy to clipboard operation
flask-api-tutorial copied to clipboard

Boilerplate for a Flask REST API with JWT-based authentication, built with SQLAlchemy, Flask-RESTx, PyJWT, and pytest. This is a companion repo for a multi-part tutorial series on my personal website.

Results 7 flask-api-tutorial issues
Sort by recently updated
recently updated
newest added

I am working through [this](https://aaronluna.dev/series/flask-api-tutorial/part-1/) excellent tutorial. At [this](https://aaronluna.dev/series/flask-api-tutorial/part-1/#install-flask-api-tutorial) step, `pip install -e .[dev]` failed for me on macOS in zsh. Error message: **zsh: no matches found: .[dev]**. [This](https://github.com/mu-editor/mu/issues/852) issue...

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/gofurmzq/Documents/authentication/.tox/py310/lib/python3.10/site-packages/markupsafe/__init__.py)

Get some error: 143, in exec_module exec(co, module.__dict__) File "/home/gofurmzq/Documents/flask-api-with-jwt/venv/lib/python3.7/site-packages/pytest_flask/plugin.py", line 11, in from flask import json File "/home/gofurmzq/Documents/flask-api-with-jwt/venv/lib/python3.7/site-packages/flask/__init__.py", line 14, in from jinja2 import escape File "/home/gofurmzq/Documents/flask-api-with-jwt/venv/lib/python3.7/site-packages/jinja2/__init__.py", line 6,...

As of version 2.0, the return type for jwt.encode is string instead of byte string, causing encode and decode tests to fail.

Is there a way to load a namespace only if some variable is set? For example I tried modifying flask-api-tutorial/src/flask_api_tutorial/api/__init__.py like this: ``` from flask import Blueprint, current_app from flask_restx...

I am a newbie who wants to learn flask. I can not open your flask-api-tutorial websites. ![微信截图_20210810104814](https://user-images.githubusercontent.com/86552105/128800780-5012eadf-137d-4b86-be7b-1485cac037b6.png)