Summary
Congratulations! You've reached another big milestone in your mastering of building a REST API with FastAPI. As you know, databases are an essential part of every system; they allow you to save data in a structured way and retrieve it precisely and reliably thanks to powerful query languages. You are now able to leverage their power in FastAPI, whether they are relational databases or document-oriented databases. Additionally, you've seen the differences between working with and without an ORM to manage relational databases, and you have also learned about the importance of a good migration system when working with such databases.
Serious things can now happen: users can send and retrieve data to and from your system. However, this poses a new challenge to tackle. This data needs to be protected so that it can remain private and secure. This is exactly what we'll discuss in our next chapter: how to authenticate users and set up FastAPI for maximum security...