fcatae / aspnet-learnings

MIT License
0 stars 0 forks source link

Padrões REST API: GET, POST, PUT, PATCH, etc #27

Open fcatae opened 8 years ago

fcatae commented 8 years ago

https://docs.asp.net/en/latest/tutorials/first-web-api.html Update is similar to Create, but uses HTTP PUT. The response is 204 (No Content). According to the HTTP spec, a PUT request requires the client to send the entire updated entity, not just the deltas. To support partial updates, use HTTP PATCH.