
Flask-Marshmallow extends the Marshmallow libary and provides additional features when you work with Flask. For this tutorial, you’ll use Flask-Marshmallow. To convert complex data types to and from Python data types, you’ll need a serializer. You want to make sure that it’s ready for the next steps in this tutorial series.

In this section, you’ll check in with the Flask REST API project that you’re working on. But the changes that you’ll make in the back end will be significant, and you’ll end up with a much more versatile codebase to help scale your Flask project up in the future. You won’t make any changes to your REST API endpoints in this tutorial.

You can download the code for the second part of this project by clicking the link below: Connect your REST API with your databaseĪfter finishing the second part of this series, you’ll move on to the third part, where you’ll extend your REST API with the functionality to add notes to a person.Leverage the Marshmallow library to serialize data.Use SQLAlchemy to save Python objects to your database.Configure a SQLite database for your Flask project.In the second part of this tutorial series, you’ll learn how to: By doing so, you learned how the Connexion module helps you build a nice REST API and interactive documentation.

In the first part, you used Flask and Connexion to create a REST API providing CRUD operations to an in-memory structure called PEOPLE. You’re also testing your API with Swagger UI API documentation that you’re building along the way. You’ve created a foundation with a basic Flask project and added endpoints, which you’ll connect to a SQLite database. In this three-part tutorial series, you’re building a REST API with the Flask web framework. That way, developers can separate the front-end code from the back-end logic, and users can interact with the interface dynamically. Most modern web applications are powered by a REST API under the hood.
