AspNetCore.Docs/aspnetcore/web-api/define-controller/samples
Bart Lannoeye b10558c28d Use StatusCode instead of hardcoded integers (#10886)
* Added missing ProducesResponseType, aligned response types

Fixes #10613

* Apply suggestions from code review

Co-Authored-By: bartlannoeye <bart.lannoeye@gmail.com>

* Use StatusCodes instead of int for define-controller samples

* Use StatusCodes instead of int for action-return-samples

* Apply PR remarks
2019-02-19 12:43:18 -06:00
..
WebApiSample.Api.21 Use StatusCode instead of hardcoded integers (#10886) 2019-02-19 12:43:18 -06:00
WebApiSample.Api.22 Use StatusCode instead of hardcoded integers (#10886) 2019-02-19 12:43:18 -06:00
WebApiSample.Api.Pre21 Use StatusCode instead of hardcoded integers (#10886) 2019-02-19 12:43:18 -06:00
WebApiSample.DataAccess Convert synchronous web API methods to async (#7544) 2018-07-10 14:08:50 -05:00
README.md 2.2 updates to web API doc (#9303) 2018-10-30 13:01:52 -05:00
WebApiSample.sln 2.2 updates to web API doc (#9303) 2018-10-30 13:01:52 -05:00

README.md

ASP.NET Core Web API Controller Sample

This sample app consists of the following projects:

  • *WebApiSample.Api.22: An ASP.NET Core 2.2 project targeting .NET Core 2.2.
  • WebApiSample.Api.21: 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: