FastAPI实战训练营
Learn FastAPI with Python! Hands-on training for building fast APIs. Master the popular framework with expert guidance. Perfect for developers.
Course Content
FastAPI实战训练营 is an intermediate-level Udemy course taught by 东升 关. It runs 11h 53m, is taught in Chinese, and includes a certificate of completion. Learners rate it 4.7 out of 5 from 3 reviews, with 49 students enrolled. It is a paid course, first published March 2023.
Fast API Development: A Comprehensive Guide
Get started with building powerful APIs using Fast API! This course provides a hands-on approach to developing web applications with Python, covering everything from setup to advanced security features.
Getting Started: Setting the Stage
- Web Application Fundamentals: Understand the core concepts of web applications and how they function.
- Introduction to Fast API: Learn about the Fast API framework – a modern, high-performance framework for building APIs.
- Environment Setup: A step-by-step guide to setting up your development environment for Fast API.
Building Your First Fast API Application
- Creating a Basic Fast API Program: Write and run your first Fast API application.
- HTTP Request Methods & Resource Relationships: Explore the different HTTP methods (GET, POST, PUT, DELETE) and how they relate to resources in your API.
- Routing: Master API routing to define how your application responds to different requests.
Working with Request Data
- Path Parameters: Learn how to extract data from the URL path.
- Type-Hinted Path Parameters: Enhance your API with type validation for path parameters. Ensure data integrity and prevent errors.
- Example 1: Retrieving Book Information by ID: A practical example of using path parameters to fetch specific data.
- Query Parameters: Understand how to use query parameters for filtering and sorting.
- Request Bodies: Learn how to handle data sent in the request body (e.g., JSON).
- Combining Request Body & Path Parameters: Master the combination of request bodies and path parameters for complex API requests.
- Combining Request Body, Path Parameters & Query Parameters: Learn how to use all three together for comprehensive data handling.
Templating and Static Files
- Using Templates: Dynamically generate HTML responses using templates.
- Serving Static Files: Easily serve static assets like images, CSS, and JavaScript.
Handling Forms
- Working with Form Data: Process data submitted through HTML forms.
Requests and Responses
- Request Object: Understand the
Requestobject and how to access request data. - Response Object: Learn how to create and customize API responses.
- Response Models: Define structured data models for your API responses.
User Authentication and Security
- Cookies: Utilize cookies for session management and user identification.
- Sessions: Implement session-based authentication for secure user sessions.
- JWT Authentication: Secure your APIs with JSON Web Tokens (JWT). A standard for securely transmitting information between parties as a JSON object.
- CORS (Cross-Origin Resource Sharing): Configure CORS to allow requests from different domains. Essential for web applications that interact with APIs hosted on different servers.
Project: User Management with SQLite
- SQLite Database Integration: Learn how to use SQLite for simple data storage.
- Example 2: User Management - Database Layer Implementation: Implement basic user management functionality using SQLite.
- Example 3: User Management - Front-end & API Implementation: Build a complete user management system with both front-end and API components.
Project: User Management with SQLAlchemy ORM
- SQLAlchemy ORM Framework: Leverage SQLAlchemy, a powerful Object-Relational Mapper (ORM), for database interaction.
- Example 2: User Management - Database Layer Implementation: Implement user management using SQLAlchemy.
- Example 3: User Management - Front-end & API Implementation: Build a complete user management system with both front-end and API components.
- SQLAlchemy Data Access Layer: Learn how to create a robust data access layer using SQLAlchemy.
- Example 4: SQLAlchemy Implementation of User Management Data Access Layer: A detailed look at implementing the data access layer with SQLAlchemy.
- Example 5: User Management - Front-end & API Implementation: Complete the user management system with front-end and API integration using SQLAlchemy.
Need a web app built? Hire the team behind TutorialSearch.io
We ship fast, production-grade full-stack apps (Next.js, React, edge infra) — the same stack that powers this site.