Skip to Main Content
Expert ASP.NET Web API 2 for MVC Developers
book

Expert ASP.NET Web API 2 for MVC Developers

by Adam Freeman
August 2014
Intermediate to advanced content levelIntermediate to advanced
688 pages
18h 5m
English
Apress
Content preview from Expert ASP.NET Web API 2 for MVC Developers

CHAPTER 18

image

Model Validation

The way that Web API binds complex types is useful and flexible, but Web API is a little too trusting and tries to carry on to the point where the action method can be executed, even if the data that has been sent to the client can’t be used to bind to the parameters that the action method requires or if the data cannot be used within the application.

Three main problems arise when processing client data: under-posting, over-posting, and unusable data. In this chapter, I describe each in turn and explain why it presents a problem in web service development before showing you the Web API features you can use to guard ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET Web API 2: Building a REST Service from Start to Finish

ASP.NET Web API 2: Building a REST Service from Start to Finish

Jamie Kurtz, Brian Wortman
Practical ASP.NET Web API

Practical ASP.NET Web API

Badrinarayanan Lakshmiraghavan
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi

Publisher Resources

ISBN: 9781484200858Purchase book