Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Podcast →
    Hear what’s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Tutorial Writer Become a Video Instructor
  • Search
/
  • Join
  • Sign‑In

— FREE Email Series —

🐍 Python Tricks 💌

Python Tricks Dictionary Merge

🔒 No spam. Unsubscribe any time.



Table of Contents

  • What Is FastAPI?
  • Install FastAPI
  • First Steps
    • Create a First API
    • Run the First API App With Uvicorn
    • Check the Response
    • Check the Interactive API Documentation
    • Check the Alternative Interactive API Documentation
    • The First API, Step by Step
  • Path Parameters: Get an Item by ID
    • Path Parameters With Types
    • Data Conversion
    • Data Validation
    • Documentation
    • Data Handling With pydantic
    • Order Matters: Put Fixed Paths First
  • Request Body: Receiving JSON Data
    • Use pydantic to Declare JSON Data Models (Data Shapes)
    • Automatic Documentation With pydantic
    • Editor Support, Autocompletion, and Type Checks
    • Use the pydantic Model
    • Request Body and Path Parameters
  • Learn More About FastAPI
  • Conclusion

Recommended Video Course
Python REST APIs With FastAPI

Learn Python
  • Start Here
  • Learning Resources
  • Code Mentor
  • Python Reference
  • Support Center
Courses & Paths
  • Learning Paths
  • Quizzes & Exercises
  • Browse Topics
  • Workshops
  • Books
Community
  • Podcast
  • Newsletter
  • Community Chat
  • Office Hours
  • Learner Stories
Membership
  • Plans & Pricing
  • Team Plans
  • For Business
  • For Schools
  • Reviews
Company
  • About Us
  • Team
  • Sponsorships
  • Careers
  • Press Kit
  • Merch
Privacy Policy ⋅ Terms of Use ⋅ Security ⋅ Contact
Happy Pythoning!
© 2012–2025 DevCademy Media Inc. DBA Real Python. All rights reserved.
REALPYTHON™ is a trademark of DevCademy Media Inc.
Real Python - Online Python Training (logo)