typo: webapi.md
parent
ba3b3a65c0
commit
a95fb6efb6
|
@ -298,7 +298,7 @@ Configure routing as follows:
|
|||
Attribute routing supports tokens, such as `[controller]` and `[action]`. At runtime, each token is replaced with the name of the controller or action, respectively, to which the attribute has been applied. The tokens:
|
||||
* Reduce the number of magic strings in the project.
|
||||
* Ensure routes remain synchronized with the corresponding controllers and actions when automatic rename refactorings are applied.
|
||||
1. Enable HTTP Get requests to the `ProductController` actions:
|
||||
1. Enable HTTP Get requests to the `ProductsController` actions:
|
||||
* Apply the [`[HttpGet]`](xref:Microsoft.AspNetCore.Mvc.HttpGetAttribute) attribute to the `GetAllProducts` action.
|
||||
* Apply the `[HttpGet("{id}")]` attribute to the `GetProduct` action.
|
||||
|
||||
|
|
Loading…
Reference in New Issue