Fix API link (#9923)
parent
e973f828c7
commit
fc96cc9606
|
@ -5,7 +5,7 @@ description: Build a web API with ASP.NET Core MVC
|
|||
ms.author: riande
|
||||
monikerRange: '> aspnetcore-2.1'
|
||||
ms.custom: mvc
|
||||
ms.date: 11/19/2018
|
||||
ms.date: 12/10/2018
|
||||
uid: tutorials/first-web-api
|
||||
---
|
||||
|
||||
|
@ -354,7 +354,7 @@ Add the following `PutTodoItem` method:
|
|||
|
||||
[!code-csharp[](first-web-api/samples/2.2/TodoApi/Controllers/TodoController.cs?name=snippet_Update)]
|
||||
|
||||
`PutTodoItem` is similar to `PostTodoItem`, except it uses HTTP PUT. The response is [204 (No Content)](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html). According to the HTTP specification, a PUT request requires the client to send the entire updated entity, not just the changes. To support partial updates, use [HTTP PATCH](/dotnet/api/microsoft.aspnetcore.mvc.httppostattribute).
|
||||
`PutTodoItem` is similar to `PostTodoItem`, except it uses HTTP PUT. The response is [204 (No Content)](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html). According to the HTTP specification, a PUT request requires the client to send the entire updated entity, not just the changes. To support partial updates, use [HTTP PATCH](xref:Microsoft.AspNetCore.Mvc.HttpPatchAttribute).
|
||||
|
||||
### Test the PutTodoItem method
|
||||
|
||||
|
|
Loading…
Reference in New Issue