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

CodeSignal

Creating a REST API with Minimal APIs

via CodeSignal

Overview

Master building efficient JSON APIs using ASP.NET Core's minimal APIs. Define endpoints, manage status codes, handle errors with Problem Details, and reuse code with IEndpointFilter.

Syllabus

  • Lesson 1: Defining HTTP Endpoints in ASP.NET Core
    • Defining HTTP Endpoints in ASP.NET Core
    • Handling GET Requests
    • Handling POST Requests
    • Handling PUT Requests
    • Handling DELETE Requests
  • Lesson 2: Returning Status Codes with Results
    • Exploring Minimal APIs in ASP.NET
    • Return Appropriate Status from the GET Endpoint
    • Return Appropriate Status from the POST Endpoint
    • Return Appropriate Status from the DELETE Endpoint
  • Lesson 3: Returning Useful Errors with Problem Details
    • Building Todo API with ASP.NET Core
    • Return Readable Errors with "Results.Problem()"
    • Return Validation Errors with "Results.ValidationProblem()"
  • Lesson 4: Returning Other Data Types in Minimal APIs
    • Handling File Downloads in ASP.NET
    • Creating a File Download Endpoint
    • Creating a Byte Array Endpoint
    • Creating a Stream endpoint

Reviews

Start your review of Creating a REST API with 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.