AspNetCore.Docs/aspnetcore/web-api/define-controller/samples
Scott Addie e23bf6825e
Mention 2.1 compat flag requirement for [ApiController] (#7491)
Fixes https://github.com/aspnet/Docs/issues/7407

[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-2.1&branch=pr-en-us-7491#annotate-class-with-apicontrollerattribute)
2018-07-06 12:54:41 -05:00
..
WebApiSample.Api Mention 2.1 compat flag requirement for [ApiController] (#7491) 2018-07-06 12:54:41 -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: