d7716559e8
* Add Web API controller definition doc * Remove wwwroot folder reference from csproj file * Verbiage tweaks * Add info about FromForm inference * Bold the attribute names * Add TOC entries * Change link ordering in TOC * Add note about IntelliSense * Major sample app changes * Fix code snippet line numbers * Minor verbiage tweaks * Add a README file * Add TestController.cs * Verbiage changes * Shorten wording * Change wording * Minor edit * React to feedback * Add attributes table * Verbiage tweaks * querystring -> query string * Minor edit * Add 2.1 controller samples * Fix invalid moniker names * Update code sample to 2.1 * Update line number * Convert uppercase W to lowercase * React to feedback * Update sample app's README file * Project file cleanup * Replace word * Remove MVC views from sample app * Derive from ControllerBase instead of Controller |
||
---|---|---|
.. | ||
WebApiSample.Api | ||
WebApiSample.Api.Pre21 | ||
WebApiSample.DataAccess | ||
README.md | ||
global.json |
README.md
ASP.NET Core Web API Controller Sample
This sample app consists of the following projects:
- WebApiSample.Api: An ASP.NET Core 2.1 project targeting .NET Core 2.1.
- WebApiSample.Api.Pre21: An ASP.NET Core 2.0 project targeting .NET Core 2.0.
- WebApiSample.DataAccess: A .NET Standard 2.0 class library serving as a data access tier for the 2 Web API projects.
This sample illustrates variations of Web API controller creation: