Skip to content

Commit ebcc137

Browse files
committedJul 12, 2023
Remove empty line before slug in lecture YAML, and remove one duplicated slug
1 parent 6ab13de commit ebcc137

File tree

34 files changed

+3
-37
lines changed

34 files changed

+3
-37
lines changed
 

‎docs/docs/05_flask_smorest/02_data_model_improvements/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Data model improvements"
33
description: "Use dictionaries instead of lists for data storage, and store stores and items separately."
4-
54
slug: data-model-improvements
65
---
76

‎docs/docs/05_flask_smorest/06_api_with_method_views/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How to use Blueprints and MethodViews
33
description: Flask-Smorest MethodViews allow us to simplify API Resources by defining all methods that interact with the resource in one Python class.
4-
54
slug: how-to-use-flask-smorest-methodviews-blueprints
65
---
76

‎docs/docs/05_flask_smorest/07_marshmallow_schemas/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Adding marshmallow schemas
33
description: A marshmallow schema is useful for validation and serialization. Learn how to write them in this lecture.
4-
54
slug: adding-marshmallow-schemas
65
---
76

‎docs/docs/05_flask_smorest/08_validation_with_marshmallow/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Validation with marshmallow
33
description: We can use the marshmallow library to validate request data from our API clients.
4-
54
slug: validation-with-marshmallow
65
---
76

‎docs/docs/05_flask_smorest/09_decorating_responses/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Decorating responses with Flask-Smorest
33
description: Add response serialization and status code to API endpoints, and add to your documentation in the process.
4-
54
slug: decorating-responses-with-flask-smorest
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/01_project_overview_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Project Overview, and why use SQLAlchemy
33
description: Let's look at what we'll do in this section. There are no changes to the client-facing API at all, just changes internally to how we store data.
4-
54
slug: project-overview-why-use-sqlalchemy
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/02_create_simple_sqlalchemy_model/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Create a simple SQLAlchemy Model
33
description: Lecture description goes here.
4-
54
slug: create-a-simple-sqlalchemy-model
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/03_one_to_many_relationships_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: One-to-many relationships with SQLAlchemy
33
description: Model relationships let us easily retrieve information about a related model, without having to do SQL JOINs manually.
4-
54
slug: one-to-many-relationships-with-sqlalchemy
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/04_configure_flask_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Configure Flask-SQLAlchemy
33
description: Link Flask-SQLAlchemy with our Flask app and create the initial tables.
4-
54
slug: configure-flask-sqlalchemy
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/05_insert_models_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Insert models in the database with SQLAlchemy
33
description: Learn how to use SQLAlchemy to add new rows to our SQL database.
4-
54
slug: insert-models-in-database-with-sqlalchemy
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/06_get_models_or_404/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Get models by ID from the database using SQLAlchemy
33
description: Learn how to fetch a specific model using its primary key column, and how to return a 404 page if it isn't found.
4-
54
slug: get-models-by-id-from-the-database
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/07_updating_models_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Updating models with SQLAlchemy
33
description: How to make changes to an existing model, or insert one if it doesn't already exist.
4-
54
slug: updating-models-with-sqlalchemy
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/08_retrieve_list_all_models/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Retrieve a list of all models
33
description: Get more than one model and return it as a list from the API.
4-
5-
Slug: retrieve-a-list-of-all-models
4+
slug: retrieve-a-list-of-all-models
65
---
76

87
# Retrieve a list of all models

‎docs/docs/06_sql_storage_sqlalchemy/10_delete_related_models_sqlalchemy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Delete models with relationships using cascades
33
description: Tell SQLAlchemy what to do with related models when you delete the parent.
4-
54
slug: delete-models-with-relationships-using-cascades
65
---
76

‎docs/docs/06_sql_storage_sqlalchemy/11_conclusion/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Conclusion of this section
33
description: Review everything we've changed this section to add SQL storage with SQLAlchemy to our API.
4-
54
slug: conclusion-of-this-section
65
---
76

‎docs/docs/07_sqlalchemy_many_to_many/01_section_changes/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Changes in this section
33
description: In this section we add Tags to our Stores, and link these to Items using a many-to-many relationship.
4-
5-
slug: changes-in-this-section
4+
slug: changes-in-many-to-many-section
65
---
76

87
# Changes in this section

‎docs/docs/07_sqlalchemy_many_to_many/02_one_to_many_review/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: One-to-many relationships review
33
description: A super-quick look at creating the Tag model and setting up the one-to-many relationship with Stores.
4-
54
slug: one-to-many-relationship-between-tag-store
65
---
76

‎docs/docs/07_sqlalchemy_many_to_many/03_many_to_many_relationships/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Many-to-many relationships
33
description: Learn to set up a many-to-many relationship between two models using SQLAlchemy.
4-
54
slug: many-to-many-relationships
65
---
76

‎docs/docs/08_flask_jwt_extended/01_section_changes/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: Changes in this section
33
description: Overview of the API endpoints we'll use for user registration and authentication.
4-
5-
slug: changes-in-this-section
4+
slug: changes-in-jwt-extended-section
65
---
76

87
# Changes in this section

‎docs/docs/08_flask_jwt_extended/02_what_is_a_jwt/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: What is a JWT?
33
description: Understand what a JWT is, what data it contains, and how it may be used.
4-
54
slug: what-is-a-jwt
65
---
76

‎docs/docs/08_flask_jwt_extended/03_how_is_jwt_used/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How are JWTs used?
33
description: Learn who uses JWTs and how they are used by clients and servers to perform authentication.
4-
54
slug: how-are-jwts-used
65
---
76

‎docs/docs/08_flask_jwt_extended/05_user_model_and_schema/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: The User model and schema
33
description: Create the SQLAlchemy User model and marshmallow schema.
4-
54
slug: the-user-model-and-schema
65
---
76

‎docs/docs/08_flask_jwt_extended/06_registering_users_rest_api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How to add a register endpoint to the REST API
33
description: Learn how to add a registration endpoint to a REST API using Flask-Smorest and Flask-JWT-Extended.
4-
54
slug: how-to-add-a-register-endpoint-to-the-rest-api
65
---
76

‎docs/docs/08_flask_jwt_extended/07_login_users_rest_api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How to add a login endpoint to the REST API
33
description: Learn how to add a login endpoint that returns a JWT to a REST API using Flask-Smorest and Flask-JWT-Extended.
4-
54
slug: how-to-add-a-login-endpoint
65
---
76

‎docs/docs/08_flask_jwt_extended/08_protect_resources_with_jwt_required/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Protect endpoints by requiring a JWT
33
description: Use jwt_required from Flask-JWT-Extended to prevent unauthorised users from making requests to certain endpoints in a REST API.
4-
54
slug: protect-endpoints-by-requiring-a-jwt
65
---
76

‎docs/docs/08_flask_jwt_extended/09_jwt_claims_and_authorization/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: JWT claims and authorization
33
description: Learn how to add claims (extra info) to a JWT and use it for authorization in endpoints of a REST API.
4-
54
slug: jwt-claims-and-authorization
65
---
76

‎docs/docs/08_flask_jwt_extended/10_logout_users_rest_api/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How to add logout to the REST API
33
description: Create a logout endpoint that blocks certain JWTs from making further authenticated requests.
4-
54
slug: how-to-add-logout-to-the-rest-api
65
---
76

‎docs/docs/08_flask_jwt_extended/11_insomnia_request_chaining/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Insomnia request chaining
33
description: "Learn how to use Insomnia's Request Chaining to simplify our workflow and not have to copy-paste the access token in every request."
4-
54
slug: request-chaining-with-insomnia
65
---
76

‎docs/docs/08_flask_jwt_extended/12_token_refreshing_flask_jwt_extended/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Token refreshing with Flask-JWT-Extended
33
description: Learn about fresh and non-fresh tokens, as well as how to use a refresh token to generate a new, non-fresh access token.
4-
54
slug: token-refreshing-with-flask-jwt-extended
65
---
76

‎docs/docs/09_flask_migrate/01_why_use_database_migrations/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Why use database migrations?
33
description: Learn about database migrations and what they are useful for.
4-
54
slug: why-use-database-migrations
65
---
76

‎docs/docs/09_flask_migrate/02_add_flask_migrate_to_app/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: How to add Flask-Migrate to our Flask app
33
description: Integrating your Flask app with Flask-Migrate is relatively straightforward. Learn how to do it in this lecture.
4-
54
slug: how-to-add-flask-migrate-to-our-flask-app
65
---
76

‎docs/docs/09_flask_migrate/03_initialize_database_flask_db_init/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Initialize your database with Flask-Migrate
33
description: "Learn the first steps when starting with Flask-Migrate: initializing the database."
4-
54
slug: initialize-database-with-flask-migrate
65
---
76

‎docs/docs/09_flask_migrate/04_change_models_generate_alembic_migration/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Change SQLAlchemy models and generate a migration
33
description: Use Flask-Migrate to generate a new database migration after changing your SQLAlchemy models.
4-
54
slug: change-sqlalchemy-models-generate-migration
65
---
76

‎docs/docs/09_flask_migrate/05_manually_review_modify_migrations/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Manually review and modify database migrations
33
description: Alembic can generate database migrations parting from model changes, but sometimes we need to modify them manually.
4-
54
slug: manually-review-modify-database-migrations
65
---
76

0 commit comments

Comments
 (0)