Update first-web-api.md (#24193)
parent
9ca29b2126
commit
627e11668c
|
@ -568,6 +568,7 @@ Date: Tue, 07 Sep 2021 21:43:00 GMT
|
||||||
Server: Kestrel
|
Server: Kestrel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<a name="over-post"></a>
|
||||||
## Prevent over-posting
|
## Prevent over-posting
|
||||||
|
|
||||||
Currently the sample app exposes the entire `TodoItem` object. Production apps typically limit the data that's input and returned using a subset of the model. There are multiple reasons behind this, and security is a major one. The subset of a model is usually referred to as a Data Transfer Object (DTO), input model, or view model. **DTO** is used in this tutorial.
|
Currently the sample app exposes the entire `TodoItem` object. Production apps typically limit the data that's input and returned using a subset of the model. There are multiple reasons behind this, and security is a major one. The subset of a model is usually referred to as a Data Transfer Object (DTO), input model, or view model. **DTO** is used in this tutorial.
|
||||||
|
|
Loading…
Reference in New Issue