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

CodeSignal

HTTP Methods and Request Handling with FastAPI

via CodeSignal

Overview

Unlock the power of HTTP methods in FastAPI. Learn to handle asynchronous requests, process POST, PUT, and DELETE requests, and create versatile endpoints. Elevate your API functionality and interaction capabilities, empowering you to build more dynamic and responsive applications.

Syllabus

  • Lesson 1: Building Asynchronous HTTP Endpoints
    • Create an Async GET Endpoint
    • Fix the Asynchronous Endpoint
    • Asynchronous GET Endpoint with Delay
  • Lesson 2: Handling POST Requests
    • Defining your first POST Endpoint
    • Adding Custom Messages in POST
    • Debugging a POST Endpoint
    • Parsing the Request Body
    • Writing a POST Endpoint
  • Lesson 3: Updating Items with PUT Requests
    • Create a PUT Endpoint
    • Update Only Specific Fields
    • Fix the PUT Endpoint
    • Write a PUT Endpoint
  • Lesson 4: Removing Items with DELETE Requests
    • Define a DELETE Endpoint
    • Enhance Delete Endpoint Responses
    • Fix the DELETE Endpoint
    • Write the DELETE Endpoint
  • Lesson 5: Supporting Multiple HTTP Methods
    • Insert Endpoint Decorators
    • Change Endpoint Paths in FastAPI
    • Debug and Correct Endpoints
    • Write All the HTTP Methods

Reviews

Start your review of HTTP Methods and Request Handling with 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.