Update getTodoItems.md (#5293)
parent
9d53ba5eea
commit
6cef2ebef7
|
@ -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) isn't case sensitive.
|
||||
* Replaces `[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) isn't 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:
|
||||
|
|
Loading…
Reference in New Issue