Get in Touch
 Duration 14 hours

Course Outline

Introduction

  • Comparing FastAPI with Django and Flask
  • Reviewing the key features and benefits of FastAPI

Initial Setup

  • Installation procedures for FastAPI
  • Schema definition utilizing OpenAPI

Path and Query Parameters

  • Specifying types for path parameters
  • Processing and validating incoming data
  • Distinguishing between required and optional parameters
  • Conversion of query parameter types
  • Managing multiple path and query parameters

Request Bodies and Pydantic Models

  • Construction of data models
  • Integration of path, query, and body parameters
  • Specification of validations and metadata
  • Application of deeply nested models
  • Definition of sample data
  • Response structures and additional models

Forms and File Handling

  • Utilizing form fields as an alternative to JSON
  • Creation of file parameters
  • Combination of file and form parameters

Error Management

  • Implementation of HTTPException
  • Inclusion of custom headers
  • Installation of custom exception handlers
  • Modification of default exception handlers

Database Integration

  • Object-Relational Mappers (ORMs) and project structure
  • Construction of SQLAlchemy components
  • Design of database models
  • Creation of corresponding Pydantic models
  • Execution of CRUD operations
  • Definition of tables, dependencies, and path operations
  • Code review and verification
  • Interaction patterns with the database

Security and Authentication

  • Implementation of OAuth2 and OpenID Connect
  • Configuration of multiple security schemes via OpenAPI
  • Leveraging FastAPI utility functions

Deployment Strategies

  • Core deployment concepts, phases, and tooling
  • Integration with Gunicorn and Uvicorn
  • Utilization of container platforms such as Docker and Kubernetes

Troubleshooting

Conclusion and Future Directions

Requirements

  • Familiarity with fundamental API concepts
  • Practical experience with Python programming

Target Audience

  • Software Developers

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories