Summary
In this chapter, we effectively covered everything you need to know in order to get started creating a RESTful API project using FastAPI in PyCharm.
FastAPI is distinct from Flask, and many other template-oriented web development frameworks, in that it is specifically designed to create only RESTful APIs. A RESTful API is a backend that is decoupled from any frontend markup, layout, interactivity, or display logic. Instead, the API focuses solely on receiving requests bearing user interaction data and returning processed data, such as that retrieved or processed in a relational database.
Since these types of applications focus on data, we learned that an SPA is normally used to serve as the frontend presentation layer. A number of modern frameworks support this paradigm, including React, Angular, and Vue. It is the frontend application’s job to control the application state since HTTP is a stateless protocol, and any backend would be ill suited to this responsibility...