AspNetCore.Docs/aspnetcore/web-api/define-controller/samples
Scott Addie d7716559e8
Add Web API controller definition doc (#6003)
* 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
2018-04-24 14:03:55 -05:00
..
WebApiSample.Api Add Web API controller definition doc (#6003) 2018-04-24 14:03:55 -05:00
WebApiSample.Api.Pre21 Add Web API controller definition doc (#6003) 2018-04-24 14:03:55 -05:00
WebApiSample.DataAccess Add Web API controller definition doc (#6003) 2018-04-24 14:03:55 -05:00
README.md Add Web API controller definition doc (#6003) 2018-04-24 14:03:55 -05:00
global.json Add Web API controller definition doc (#6003) 2018-04-24 14:03:55 -05:00

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: