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

CodeSignal

Model Binding in Minimal APIs

via CodeSignal

Overview

Learn model binding in minimal APIs, covering binding of simple and complex types, handling nullable types, and special types like services. This will enable effective handling of user input in your applications.

Syllabus

  • Lesson 1: Model Binding in Minimal APIs
    • Filter TODO Items by Status using Query Parameters
    • Binding Parameters for Pagination
    • Explicitly Bind Query Parameters with [FromQuery]
    • Fix Your Minimal API Query and Paging
    • Enhance API with Route, Query, and Header Binding
  • Lesson 2: Binding Complex Types to JSON Bodies
    • Binding Complex Data Types to the JSON body
    • Change Id Type in Todo Record
    • Fix the Todo Endpoint Bug
    • Adding Meaningful Default Values
  • Lesson 3: Making Parameters Optional with Nullable Types
    • Flexible API with Optional Parameters
    • Make a Query Parameter Optional
    • Implementing Optional Request Body Handling
  • Lesson 4: Binding Special Types
    • Binding HttpContext
    • Bind HttpRequest Directly
    • Extract Query Parameters from HttpRequest

Reviews

Start your review of Model Binding in Minimal APIs

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.