Technical requirements
To fully engage with this chapter in our FastAPI Cookbook and effectively build RESTful APIs, you’ll need to have the following technologies and tools installed and configured:
- Python: Make sure you have a Python version higher than 3.9 in your environment.
- FastAPI: This should be installed with all required dependencies. If you haven’t done it from the previous chapters, you can do so simply from your terminal with the following command:
$ pip install fastapi[all]
- Pytest: You can install this framework by running the following:
$ pip install pytest
Note that it can be very useful to already have some knowledge of the Pytest framework to better follow the Testing your RESTful API recipe.
The code used in the chapter is available on GitHub at the address: https://github.com/PacktPublishing/FastAPI-Cookbook/tree/main/Chapter03.
Feel free to follow along or consult it in case you get stuck.