typo: webapi.md

pull/30505/head
Erik McKelvey 2023-09-27 15:02:58 -07:00 committed by GitHub
parent ba3b3a65c0
commit a95fb6efb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.