diff --git a/docs/docs/05_flask_smorest/06_api_with_method_views/README.md b/docs/docs/05_flask_smorest/06_api_with_method_views/README.md index d73e1524..88ed1d51 100644 --- a/docs/docs/05_flask_smorest/06_api_with_method_views/README.md +++ b/docs/docs/05_flask_smorest/06_api_with_method_views/README.md @@ -108,7 +108,7 @@ from flask_smorest import Blueprint, abort from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/item.py b/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/item.py index 743afb86..44516ac4 100644 --- a/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/item.py +++ b/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/item.py @@ -5,7 +5,7 @@ from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/store.py b/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/store.py index 23ae7c63..5077d6ef 100644 --- a/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/store.py +++ b/docs/docs/05_flask_smorest/06_api_with_method_views/end/resources/store.py @@ -5,7 +5,7 @@ from db import stores -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/item.py b/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/item.py index 743afb86..44516ac4 100644 --- a/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/item.py +++ b/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/item.py @@ -5,7 +5,7 @@ from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/store.py b/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/store.py index 008b4d2c..b92b4cf9 100644 --- a/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/store.py +++ b/docs/docs/05_flask_smorest/07_marshmallow_schemas/end/resources/store.py @@ -5,7 +5,7 @@ from db import stores -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/item.py b/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/item.py index 743afb86..44516ac4 100644 --- a/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/item.py +++ b/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/item.py @@ -5,7 +5,7 @@ from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/store.py b/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/store.py index 008b4d2c..b92b4cf9 100644 --- a/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/store.py +++ b/docs/docs/05_flask_smorest/07_marshmallow_schemas/start/resources/store.py @@ -5,7 +5,7 @@ from db import stores -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/item.py b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/item.py index d3b09ede..1fdb59ee 100644 --- a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/item.py +++ b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/item.py @@ -5,7 +5,7 @@ from schemas import ItemSchema, ItemUpdateSchema from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/store.py b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/store.py index bc8824b8..9222ab60 100644 --- a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/store.py +++ b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/end/resources/store.py @@ -5,7 +5,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/item.py b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/item.py index 743afb86..44516ac4 100644 --- a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/item.py +++ b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/item.py @@ -5,7 +5,7 @@ from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/store.py b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/store.py index 008b4d2c..b92b4cf9 100644 --- a/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/store.py +++ b/docs/docs/05_flask_smorest/08_validation_with_marshmallow/start/resources/store.py @@ -5,7 +5,7 @@ from db import stores -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/09_decorating_responses/README.md b/docs/docs/05_flask_smorest/09_decorating_responses/README.md index 47f0d2df..44f41500 100644 --- a/docs/docs/05_flask_smorest/09_decorating_responses/README.md +++ b/docs/docs/05_flask_smorest/09_decorating_responses/README.md @@ -123,7 +123,7 @@ from db import stores from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/item.py b/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/item.py index eab1fdaa..44255aa7 100644 --- a/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/item.py +++ b/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/item.py @@ -5,7 +5,7 @@ from schemas import ItemSchema, ItemUpdateSchema from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/store.py b/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/store.py index 1bfa7cbf..babdf338 100644 --- a/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/store.py +++ b/docs/docs/05_flask_smorest/09_decorating_responses/end/resources/store.py @@ -5,7 +5,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/item.py b/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/item.py index d3b09ede..1fdb59ee 100644 --- a/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/item.py +++ b/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/item.py @@ -5,7 +5,7 @@ from schemas import ItemSchema, ItemUpdateSchema from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/store.py b/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/store.py index bc8824b8..9222ab60 100644 --- a/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/store.py +++ b/docs/docs/05_flask_smorest/09_decorating_responses/start/resources/store.py @@ -5,7 +5,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/item.py index af5b5843..6b6d2915 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/store.py index 514680fb..657797d6 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/item.py index 2295ab7e..4038b9d0 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/store.py index 2784516b..3a9d26e1 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/item.py index 0880bd3c..31b77b6b 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/store.py index 132c4bd2..57fd7577 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/item.py index af5b5843..6b6d2915 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/store.py index 514680fb..657797d6 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/item.py index e6fedffb..8efd6ed6 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/store.py index 132c4bd2..57fd7577 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/item.py index 0880bd3c..31b77b6b 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/store.py index 132c4bd2..57fd7577 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/item.py index 71b6f62c..1b02d5a5 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/store.py index f2d77a29..233bbe8c 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/item.py index e6fedffb..8efd6ed6 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/store.py index 132c4bd2..57fd7577 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/item.py index 71b6f62c..1b02d5a5 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/store.py index f2d77a29..233bbe8c 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/09_delete_models_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/item.py b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/item.py +++ b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/store.py b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/store.py +++ b/docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/item.py b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/item.py +++ b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/store.py b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/store.py +++ b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/item.py b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/item.py +++ b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/store.py b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/store.py +++ b/docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/item.py b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/item.py +++ b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/store.py b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/store.py +++ b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/item.py b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/item.py +++ b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/store.py b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/store.py +++ b/docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/item.py b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/store.py b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/item.py b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/store.py b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/04_flask_jwt_extended_setup/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/item.py b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/store.py b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/item.py b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/store.py b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/05_user_model_and_schema/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/item.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/store.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/item.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/store.py b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/item.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/store.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/item.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/store.py b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/07_login_users_rest_api/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/README.md b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/README.md index dcc70395..42c1c755 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/README.md +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/README.md @@ -26,7 +26,7 @@ from db import db from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/item.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/item.py index 1de1f7a5..4a2c2e59 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/store.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/item.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/item.py index c8a96721..c66ceb40 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/store.py b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/item.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/item.py index 379c6f48..8202f17d 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/store.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/item.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/item.py index 1de1f7a5..4a2c2e59 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/store.py b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/item.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/item.py index 379c6f48..8202f17d 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/store.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/item.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/item.py index 379c6f48..8202f17d 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/store.py b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/item.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/store.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/item.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/store.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/end_video/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/item.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/item.py index 379c6f48..8202f17d 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/item.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/store.py b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/store.py +++ b/docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/item.py b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/item.py +++ b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/store.py b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/store.py +++ b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/item.py b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/item.py +++ b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/store.py b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/store.py +++ b/docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/item.py b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/item.py +++ b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/store.py b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/store.py +++ b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/item.py b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/item.py +++ b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/store.py b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/store.py +++ b/docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/item.py b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/item.py +++ b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/store.py b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/store.py +++ b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/end/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/item.py b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/item.py index 28e9b186..b35048e0 100644 --- a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/item.py +++ b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/item.py @@ -7,7 +7,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/store.py b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/store.py +++ b/docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/start/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/project/03-items-stores-smorest/resources/item.py b/project/03-items-stores-smorest/resources/item.py index eab1fdaa..44255aa7 100644 --- a/project/03-items-stores-smorest/resources/item.py +++ b/project/03-items-stores-smorest/resources/item.py @@ -5,7 +5,7 @@ from schemas import ItemSchema, ItemUpdateSchema from db import items -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/project/03-items-stores-smorest/resources/store.py b/project/03-items-stores-smorest/resources/store.py index 1bfa7cbf..babdf338 100644 --- a/project/03-items-stores-smorest/resources/store.py +++ b/project/03-items-stores-smorest/resources/store.py @@ -5,7 +5,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/project/04-items-stores-smorest-sqlalchemy/resources/item.py b/project/04-items-stores-smorest-sqlalchemy/resources/item.py index c8a96721..c66ceb40 100644 --- a/project/04-items-stores-smorest-sqlalchemy/resources/item.py +++ b/project/04-items-stores-smorest-sqlalchemy/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/project/04-items-stores-smorest-sqlalchemy/resources/store.py b/project/04-items-stores-smorest-sqlalchemy/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/project/04-items-stores-smorest-sqlalchemy/resources/store.py +++ b/project/04-items-stores-smorest-sqlalchemy/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/project/05-add-many-to-many/resources/item.py b/project/05-add-many-to-many/resources/item.py index c8a96721..c66ceb40 100644 --- a/project/05-add-many-to-many/resources/item.py +++ b/project/05-add-many-to-many/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/project/05-add-many-to-many/resources/store.py b/project/05-add-many-to-many/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/project/05-add-many-to-many/resources/store.py +++ b/project/05-add-many-to-many/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/project/06-add-db-migrations/resources/item.py b/project/06-add-db-migrations/resources/item.py index c8a96721..c66ceb40 100644 --- a/project/06-add-db-migrations/resources/item.py +++ b/project/06-add-db-migrations/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/project/06-add-db-migrations/resources/store.py b/project/06-add-db-migrations/resources/store.py index 06bc0e24..9d2fecef 100644 --- a/project/06-add-db-migrations/resources/store.py +++ b/project/06-add-db-migrations/resources/store.py @@ -7,7 +7,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/") diff --git a/project/using-flask-smorest/resources/item.py b/project/using-flask-smorest/resources/item.py index 6a657f51..b7e8f830 100644 --- a/project/using-flask-smorest/resources/item.py +++ b/project/using-flask-smorest/resources/item.py @@ -6,7 +6,7 @@ from models import ItemModel from schemas import ItemSchema, ItemUpdateSchema -blp = Blueprint("Items", "items", description="Operations on items") +blp = Blueprint("Items", __name__, description="Operations on items") @blp.route("/item/") diff --git a/project/using-flask-smorest/resources/store.py b/project/using-flask-smorest/resources/store.py index 8e4adcf9..e18824dd 100644 --- a/project/using-flask-smorest/resources/store.py +++ b/project/using-flask-smorest/resources/store.py @@ -5,7 +5,7 @@ from schemas import StoreSchema -blp = Blueprint("Stores", "stores", description="Operations on stores") +blp = Blueprint("Stores", __name__, description="Operations on stores") @blp.route("/store/")