Abstract
Not all controllers are used to send HTML documents to clients. There are also API controllers, which are used to provide access to an application’s data. This is a feature that was previously provided through the separate Web API framework but has now been integrated into ASP.NET Core MVC. In this chapter, I explain the role that API controllers play in a web application, describe the problems they solve, and demonstrate how they are created, tested, and used. Table 20-1 puts API controllers in context.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2016). API Controllers. In: Pro ASP.NET Core MVC . Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0397-2_20
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0397-2_20
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0398-9
Online ISBN: 978-1-4842-0397-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)