Summary

ASP.NET Core provides the necessary infrastructure you need to create powerful RESTful APIs. In this chapter you learned how to create controllers and actions that respond to HTTP requests, and return HTTP responses that you control.

I've introduced two popular tools: Fiddler and Postman, and you'll find them very useful when you create and debug your API applications. You've seen how to configure the routing in your application in two ways — conventional and attribute-based — and how to map values in the request's URL to parameters.

You've learned what the meaning of the M, MVC is, and how to bind the data from the request to the model classes.

You've also seen how easy it is to define validation rules on your model types, and how ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.