This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
What isn't a difference between controller-based APIs and minimal APIs?
All startup code happens in Program.cs.
Requests are primarily mapped to controllers and decorators for controller-based APIs.
Model binding uses decorators to get body data.
What is the correct way to create a minimal API?
Enter dotnet new webapi.
dotnet new webapi
Enter dotnet new web.
dotnet new web
Enter dotnet new minimalapi.
dotnet new minimalapi
What's the correct way to set up a route in minimal API?
Enter ActionResult Get() {}.
ActionResult Get() {}
Enter app.Get("/pizza", () => /**/).
app.Get("/pizza", () => /**/)
Enter app.MapGet("/pizza", () => /**/).
app.MapGet("/pizza", () => /**/)
You must answer all questions before checking your work.
Was this page helpful?