From ca457a9c11b535413a9627c639162802be098944 Mon Sep 17 00:00:00 2001 From: Scott Addie <10702007+scottaddie@users.noreply.github.com> Date: Mon, 8 Jul 2019 10:11:11 -0500 Subject: [PATCH] Remove base wording from web API controller doc (#13185) --- aspnetcore/web-api/index.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aspnetcore/web-api/index.md b/aspnetcore/web-api/index.md index 458b7e69b0..2c8e3a9cc4 100644 --- a/aspnetcore/web-api/index.md +++ b/aspnetcore/web-api/index.md @@ -5,10 +5,9 @@ description: Learn the basics of creating a web API in ASP.NET Core. monikerRange: '>= aspnetcore-2.1' ms.author: scaddie ms.custom: mvc -ms.date: 05/07/2019 +ms.date: 07/08/2019 uid: web-api/index --- - # Create web APIs with ASP.NET Core By [Scott Addie](https://github.com/scottaddie) and [Tom Dykstra](https://github.com/tdykstra) @@ -23,7 +22,7 @@ A web API has one or more controller classes that derive from base class. `Controller` derives from `ControllerBase` and adds support for views, so it's for handling web pages, not web API requests. There's an exception to this rule: if you plan to use the same controller for both views and APIs, derive it from `Controller`. +Don't create a web API controller by deriving from the class. `Controller` derives from `ControllerBase` and adds support for views, so it's for handling web pages, not web API requests. There's an exception to this rule: if you plan to use the same controller for both views and APIs, derive it from `Controller`. The `ControllerBase` class provides many properties and methods that are useful for handling HTTP requests. For example, `ControllerBase.CreatedAtAction` returns a 201 status code: