REST APIs with Flask and Python
This repository contains code that is created in my course, REST APIs with Flask and Python.
The code is divided in folders, one for each section of the course which contains code.
Section 2
The code is in files numbered between 1 and 11, covering concepts ranging from beginner to advanced.
- Variables
- Methods
- Lists, tuples, and sets
- If statements
- List comprehension
- Dictionaries
- Classes and objects
- Static and class methods
- Args and Kwargs
- Passing functions as arguments
- Decorators
Section 3
The code in this section includes a simple Flask app and a HTML and JavaScript file which calls the Flask app endpoints.
Section 4
The code in this section includes a Flask app which is an API that represents items. It also includes user registration and authentication.
Section 5
The code in this section extends the last section by adding persistent storage of Items to a SQLite database.
Section 6
The code in this section extends the previous section by replacing the manual integration with SQLite, with SQLAlchemyβan ORM (Object-Relational Mapping)βwhich allows us to easily replace SQLite with something like PostgreSQL or MySQL.