Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Working with Data Models in FastAPI

via CodeSignal

Overview

Harness the power of Pydantic models for data validation and structuring. Design and validate robust data models and seamlessly integrate nested models. This course sharpens your data-handling skills, ensuring accurate and reliable API interactions.

Syllabus

  • Lesson 1: Data Modeling with Pydantic and FastAPI
    • Testing Pydantic Models and Endpoints
    • Change Response by Altering Model
    • Completing the Response Model
    • Fix the Pydantic Model
    • Implementing the Pydantic Model
  • Lesson 2: Handling POST Requests with Pydantic Models
    • Using Model to Handle POST Request
    • Setting Up POST Endpoint
    • Streamline Your POST Endpoint
    • Fix the Validation Issue
    • Write a POST Endpoint using Pydantic
  • Lesson 3: Validating Data with Pydantic Models
    • Observing Data Validation
    • Completing Pydantic Validation
    • Add Multiple Constraints to Fields
    • Adding Email Validation to Model
    • Write Your Own Validation
  • Lesson 4: Custom Validation in Models
    • Validate Custom Rules in FastAPI
    • Fill the Custom Validation
    • Fix Custom Validation Bug
    • Enhance Validation for Engineers
    • Write Custom Validation from Scratch
  • Lesson 5: Nested Models for Complex Data Structures
    • Testing Your Nested Models API
    • Completing the Nested Model
    • Fix the FastAPI Nested Models
    • Enhancing Nested Data Structures

Reviews

Start your review of Working with Data Models in FastAPI

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.