Get in Touch

Course Outline

Introduction

  • Comparing FastAPI with Django and Flask
  • Overview of key FastAPI features and benefits

Getting Started

  • Installation of FastAPI
  • Defining schemas using OpenAPI

Path and Query Parameters

  • Specifying path parameter types
  • Data parsing and validation
  • Defining required and optional parameters
  • Conversion of query parameter types
  • Handling multiple path and query parameters

Declaring Request Bodies with Pydantic Models

  • Constructing data models
  • Integrating path, query, and body parameters
  • Specifying validations and metadata
  • Utilizing deeply nested models
  • Defining example data
  • Response structures and additional models

Handling Forms and Files

  • Employing form fields as an alternative to JSON
  • Creating file parameters
  • Using file and form parameters in conjunction

Error Handling

  • Utilizing HTTPException
  • Incorporating custom headers
  • Installing custom exception handlers
  • Overriding default exception handlers

Database Integration

  • ORM concepts and file organization
  • Constructing SQLAlchemy components
  • Creating database models
  • Developing Pydantic models
  • Executing CRUD operations
  • Establishing tables, dependencies, and path operations
  • Code review and file verification
  • Database interaction patterns

Security and Authentication

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

Deployment

  • Deployment strategies, stages, and tools
  • Working with Gunicorn and Uvicorn
  • Utilizing container systems (Docker and Kubernetes)

Troubleshooting

Conclusion and Future Steps

Requirements

  • Familiarity with fundamental 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