ASP.NET Core glossary: Apprentice level
23 ASP.NET Core terms at the Apprentice level, each with a short definition and a link to its full page.
Updated
- [ApiController]
- An attribute that turns on API behaviour like automatic 400s for bad input.
- [FromBody]
- Marks a parameter as coming from the JSON body.
- [FromQuery]
- Marks a parameter as coming from the query string.
- [FromRoute]
- Marks an action parameter as coming from the route, such as the 7 in /products/7.
- Action Method
- A controller method that handles one endpoint.
- AddScoped, AddTransient, AddSingleton
- The three ways to register a service, one per lifetime.
- Attribute Routing
- Declaring routes with attributes on controllers and methods.
- Configuration
- Settings merged from files, secrets, environment variables and the command line.
- Controller
- A class that groups related endpoints as methods.
- Dependency Injection
- The built-in system that hands registered services to the code that needs them.
- Environment
- Development, Staging or Production, set by ASPNETCORE_ENVIRONMENT.
- IActionResult
- A return type that lets an action send different responses.
- ILogger
- The built-in logging interface.
- MapGet and MapPost
- Methods that connect an HTTP method and URL to a handler.
- Minimal API
- Endpoints mapped straight to functions, without controller classes.
- Model Binding
- Filling handler parameters from the route, query, headers and body.
- Model-View-Controller (MVC)
- A pattern that splits a web app into models (data), views (HTML) and controllers (requests).
- Results and TypedResults
- Helpers that create minimal API responses like Ok and NotFound.
- Route Parameter
- A placeholder in the route whose value reaches your handler.
- Route Template
- A URL pattern with placeholders and constraints.
- Service Lifetime
- How long a registered service instance lives: transient, scoped or singleton.
- Static Files
- Files in wwwroot served as-is.
- Swagger in ASP.NET Core
- Built-in OpenAPI generation, viewed through a UI like Swagger UI.