The training on building REST APIs in Python with FastAPI covers essential topics in modern web development. It emphasizes the significance of REST APIs and microservices in creating scalable and maintainable applications. The distinction between pragmatic and non-pragmatic REST design approaches is explored to provide a foundation for effective API development.
The anatomy of HTTP requests is thoroughly examined, encompassing the protocol, address, path, query parameters, and headers, fostering a good understanding of the underlying communication.
To use REST APIs in Python (client-side) good frameworks exist. Two of the more popular libraries (Requests and HTTPX ) are explored in some depth, highlighting their versatility and benefits in working with RESTful services.
The training has a strong hands-on character. Youll be creating, step-by-step, a REST APIs with FastAPI, starting from simple path operations and gradually incorporating various components like query parameters and request bodies.
You will be introduced to OpenAPI along the way. Among FastAPIs built-in capabilities are the automatic creation of the API specification and a web-interface which uses this specification to interface with your API.
The integration of databases into FastAPI projects is covered, showcasing effective methods for interacting with persistent data.
Authentication, including the use of JSON Web Tokens (JWT), is addressed, empowering you to secure your APIs and manage user access effectively.
By the end of the training, you will gain a comprehensive skill set for developing robust, efficient, and secure REST APIs in Python using FastAPI, aligning with industry best practices.