In this chapter, we expanded the capabilities of the previous version of the RESTful API we created in the preceding chapter. We used SQLAlchemy as our ORM to work with a PostgreSQL 10.5 database. We added many packages to simplify many common tasks, we wrote code for the models and their relationships, and we worked with schemas to validate, serialize, and deserialize these models.
We combined blueprints with resourceful routing, and we were able to generate the database from the models. We composed and sent many HTTP requests to our RESTful API and analyzed how each HTTP request was processed in our code and how the models persisted in the database tables.
Now that we have built a complex API with Flask, Flask-RESTful, and SQLAlchemy, we will utilize additional features; we will add security and authentication, which are the topics of the next chapter.