Skip to content
LusonaHub#527 · Mon, 09 Nov 2026, 12:48:00 GMT
Tech Academy

Lusona Tech Academy · Intermediate

ASP.NET Core — web APIs with .NET

.NET Core on the web: minimal APIs, routing, JSON, dependency injection, Entity Framework Core and deployment.

2 modules · 4 hands-on lessons · 14 h · 0 XP

0%

Sign in to keep your progress on every device.

Module 1 · Minimal APIs

Your first endpoint

var app = WebApplication.CreateBuilder(args).Build(); creates the web app. app.MapGet("/", () => "Hello"); answers GET requests. app.Run(); starts it.

.NET Core is the cross-platform .NET; today it is simply called .NET (8, 9…).

Example

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello from ASP.NET Core");
app.Run();

Your task

Add an endpoint GET /time that returns DateTime.Now.

Ctrl/⌘ + Enter

🧰 With the .NET SDK: `dotnet new web -o MyApi`, `cd MyApi`, `dotnet run`, then open the URL it prints. Here, Check reads your code and confirms the parts the task asks for.

Loading videos from the Hub shelf…

Loading the shelf…