From b684e215bd4e1ecb6835f51867092ea56f1e2d0a Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Fri, 5 Jan 2018 11:39:30 -0600 Subject: [PATCH] Fix casing of [Controller] placeholder (#5121) --- aspnetcore/includes/webApi/getTodoItems.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/includes/webApi/getTodoItems.md b/aspnetcore/includes/webApi/getTodoItems.md index ceee16c4f8..8f2a728d3c 100644 --- a/aspnetcore/includes/webApi/getTodoItems.md +++ b/aspnetcore/includes/webApi/getTodoItems.md @@ -39,7 +39,7 @@ The `[HttpGet]` attribute specifies an HTTP GET method. The URL path for each me [!code-csharp[Main](../../tutorials/first-web-api/sample/TodoApi/Controllers/TodoController.cs?name=TodoController&highlight=3)] -* Replace "[Controller]" with the name of the controller, which is the controller class name minus the "Controller" suffix. For this sample, the controller class name is **Todo**Controller and the root name is "todo". ASP.NET Core [routing](xref:mvc/controllers/routing) is not case sensitive. +* Replace `[controller]` with the name of the controller, which is the controller class name minus the "Controller" suffix. For this sample, the controller class name is **Todo**Controller and the root name is "todo". ASP.NET Core [routing](xref:mvc/controllers/routing) is not case sensitive. * If the `[HttpGet]` attribute has a route template (such as `[HttpGet("/products")]`, append that to the path. This sample doesn't use a template. See [Attribute routing with Http[Verb] attributes](xref:mvc/controllers/routing#attribute-routing-with-httpverb-attributes) for more information. In the `GetById` method: