Introduction to API Development
”The one goal of compassionate communication is to help others suffer less.”
– Thich Nhat Hanh
In this chapter, we are going to learn about the concept of Application Programming Interface, or API.
We are going to discuss the following:
- The HTTP protocol
- Introduction to API design
- A complete API example
We are going to briefly touch on the HTTP protocol, as it is the infrastructure upon which we will build the API. Moreover, since the framework we are going to use, FastAPI, leverages Type Hinting extensively, you may want to make sure you have read Chapter 12, Introduction to Type Hinting, as a prerequisite.
After a short general introduction to APIs, we are going to show you a railway project, which you can find in its complete state in the source code for this chapter, along with its requirements and a README file that explains all you need to know to run the API and...