Build Modern RESTful Web Apps with FastAPI
About This Course
The WSQ Build Modern RESTful Web Apps with FastAPI course provides comprehensive training on developing, integrating, and optimizing RESTful web applications. Participants will learn to create API integration plans, connect data and functionalities, and develop web services using FastAPI. This course covers core concepts like path and query parameters, request bodies, Pydantic models, and automatic API documentation, giving learners the essential skills to build modern, fast, and efficient web APIs.
Through hands-on exercises, participants will create real-world FastAPI projects, focusing on database integration, CRUD operations, and routing. They will develop middleware solutions and enhance API security using JWT authentication. The course also covers testing, debugging, and performance optimization, ensuring learners can validate and troubleshoot web applications. By the end of the course, participants will have the skills to build, test, and deploy fully functional RESTful web apps using FastAPI.
What You'll Learn
LO1: Formulate application integration plans to connect data and functionalities of web services using FastAPI.
LO2 – Program and evaluate FastAPI for API-level integrations of existing applications.
LO3: Evaluate the end-to-end integration process and validate FastAPI performance through effective testing procedures.
LO4: Diagnose and troubleshoot integration issues to optimize FastAPI functionality.
Topics Covered:
Topic 1: Introduction to Application Programming Interface (API)
• What is an Application Programming Interface (API)?
• Creating connection among various applications
• Pros and cons of FastAPI
• Creating a simple FastAPI application to integrate data and functionalities
Topic 2: Application Integration with FastAPI
• Path Parameters
• Path Parameters With Type
• Automatic Documentation
• Ordering Of Routes
• Query Parameters
• Passing Default Values To Query Parameters
• Using Path & Query Parameters Simultaneously
• Required Query Parameters
• Request Body
• POST Method
• Pydantic Models With Request Body
• Using Model Inside A Function
• Passing Path & Query Parameters To Request
• Passing Multiple Models
• Defining Fields For Metadata
• Nesting Python DataTypes In A Model
• Nesting Pydantic Models
• Deeply Nested Models
• Providing Example Data
• Defining Example Data Using Fields
• Forms To Submit API Data
Topic 3: Create a Realistic Project with FastAPI
• Connecting To Database
• Creating A Project
• Creating A Connection
• Creating A Model
• Using Table Plus
• Adding Data To Database
• Fetching Products
• Deleting Products
• Creating A Route To Update Products
Topic 4: Testing and Modification
• Response Model
• HTTP Status Codes
• Raising Exceptions
• Authentication With JWT
• Creating Login Route
• Logging In The User
• Significance Of JWT Token
• Utility Function To Create JWT Token
• Generating JWT Token
• Get Current User
• Protecting Routes
Entry Requirements
Knowledge and Skills
• Able to operate computer functions with minimum Computer Literacy Level 2 based on ICAS Computer Skills Assessment Framework
• Minimum 3 GCE ‘O’ Levels Passes including English or WPL Level 5 (Average of Reading, Listening, Speaking & Writing Scores)
Attitude
• Positive Learning Attitude
• Enthusiastic Learner
Experience
• Minimum of 1 year of working experience.
Target Year Group : 21-65 years old