Skip to Main Content
Modern Web Development with ASP.NET Core 3 - Second Edition
book

Modern Web Development with ASP.NET Core 3 - Second Edition

by Ricardo Peres
June 2020
Intermediate to advanced content levelIntermediate to advanced
802 pages
16h 11m
English
Packt Publishing
Content preview from Modern Web Development with ASP.NET Core 3 - Second Edition
API Controllers

This chapter introduces API controllers. An API controller is just an MVC controller that doesn't return a UI but instead works with requests and payloads and returns responses in machine-readable formats, such as JSON or XML. We will cover a number of aspects related to API controllers, from security to versioning.

The following topics will be covered in this chapter:

  • Introduction to REST
  • Model binding
  • Authorizing access to resources
  • Applying OpenAPI conventions
  • Returning validation results
  • Performing content negotiation
  • Handling errors
  • Understanding API versioning
  • Generating API documentation
  • Serving OData

By the end of this chapter, we will be able to work with authentication and validation overall, without much human ...

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

Hands-On Full-Stack Web Development with ASP.NET Core

Hands-On Full-Stack Web Development with ASP.NET Core

Tamir Dresher, Amir Zuker, Shay Friedman

Publisher Resources

ISBN: 9781789619768Supplemental Content