Get in Touch

Course Outline

Introduction

  • Comparing FastAPI with Django and Flask
  • Key features and benefits of FastAPI

Getting Started

  • Setting up FastAPI
  • Defining schemas with OpenAPI

Path and Query Parameters

  • Specifying path parameter types
  • Data parsing and validation techniques
  • Distinguishing between required and optional parameters
  • Type conversion for query parameters
  • Managing multiple path and query parameters

Request Bodies with Pydantic Models

  • Building data models
  • Integrating path, query, and body parameters
  • Setting validations and metadata
  • Working with deeply nested structures
  • Defining example data
  • Handling responses and additional models

Forms and Files

  • Utilizing form fields over JSON
  • Creating file parameters
  • Combining file and form inputs

Error Handling

  • Implementing HTTPException
  • Adding custom headers
  • Registering custom exception handlers
  • Overriding default exception behaviors

Database Integration

  • Understanding ORMs and project structure
  • Building SQLAlchemy components
  • Defining database models
  • Creating corresponding Pydantic models
  • Executing CRUD operations
  • Setting up tables, dependencies, and path operations
  • Code review and file inspection
  • Interacting with the database

Security and Authentication

  • Implementing Oauth2 and OpenID connect
  • Defining multiple security schemes via OpenAPI
  • Leveraging FastAPI security utilities

Deployments

  • Deployment strategies, stages, and tooling
  • Using Gunicorn and Uvicorn
  • Containerization with Docker and Kubernetes

Troubleshooting

Wrap-up and Future Steps

Requirements

  • Familiarity with API concepts
  • Practical experience in Python programming

Target Audience

  • Software Developers
 14 Hours

Number of participants


Price per participant

Testimonials (4)

Upcoming Courses

Related Categories