Grammar fixes (#28956)
parent
173f46ea39
commit
f5940203ec
|
@ -66,10 +66,10 @@ The <xref:Microsoft.AspNetCore.Http.Results> and <xref:Microsoft.AspNetCore.Http
|
|||
|
||||
Returning `TypedResults` rather than `Results` has the following advantages:
|
||||
|
||||
* `TypedResults` return strongly typed objects, which can improve code readability, unit testing, and reduce the chance of runtime errors.
|
||||
* `TypedResults` helpers return strongly typed objects, which can improve code readability, unit testing, and reduce the chance of runtime errors.
|
||||
* The implementation type [automatically provides the response type metadata for OpenAPI](/aspnet/core/fundamentals/minimal-apis/openapi#describe-response-types) to describe the endpoint.
|
||||
|
||||
Consider the follow endpoint, for which a `200 OK` status code with the expected JSON response is produced.
|
||||
Consider the following endpoint, for which a `200 OK` status code with the expected JSON response is produced.
|
||||
|
||||
:::code language="csharp" source="~/tutorials/min-web-api/samples/7.x/todo/Program.cs" id="snippet_11b":::
|
||||
|
||||
|
|
Loading…
Reference in New Issue