English | 2023 | ISBN: 1484293487 | 423 Pages | PDF | 11.61 MB
If you are a developer who wants to learn the basic skills of web and application programming interfaces (APIs) with .NET, this book is your complete introduction. The book takes a learn-by-experience approach. You will hit the ground running with a sample project that has everything you need to be wired up.
As you follow along, you will learn simple and intuitive conventions that will free you from some of the more tedious decisions and work, in order to allow you to focus on the business requirements required by your team. Certain components of the framework should always appear in certain folders in the solution to speed up development while others need a name that follows particular conventions. You will learn the building blocks of Web API and how to leverage them to have a well-rounded API. Understanding these small but important tricks will make development faster, easier, and more pleasant, and will prevent time-consuming errors.
Part I introduces you to the basics of Web. Part II gets you started creating an API that you will use and build upon throughout the book until you have a complete project. All companion code is available via GitHub. Part III covers more advanced concepts, including how to override out-of-the-box conventions to customize an API to meet your specific business needs. By the end of the book you will have a fully functional API, and you will be better prepared for an interview for a .NET backend developer job.
What You Will Learn
Build a start-to-finish Web API
Know the main concepts of the Web
Apply best practices in API development to your own projects
Know the fundamentals of Web API development
Know the fundamentals of a RESTful API
Leverage Web API constructs to implement a clean and extensible API
Get hands-on experience to unit test a Web API
Gain the skills required to apply for a junior or entry-level .NET Web developer job
Who This Book Is For
Developers who want to learn API development with .NET. It is helpful to have some basic C# programming knowledge because it is used in API development in .NET, but it is not mandatory. Readers should be familiar with a programming language to be able to understand code and examples. Experience with web development is not necessary.
如果你是一个开发人员,想要学习使用.NET的web和应用程序编程接口(API)的基本技能,那么这本书就是你的完整介绍。这本书采取了一种经验学习的方法。您将开始运行一个示例项目,该项目具有您需要连接的所有内容。
在接下来的过程中,您将学习简单直观的惯例,这些惯例将使您摆脱一些更乏味的决策和工作,从而使您能够专注于团队所需的业务需求。框架的某些组件应该始终出现在解决方案中的某些文件夹中,以加快开发速度,而其他组件则需要遵循特定约定的名称。您将学习Web API的构建块,以及如何利用它们来获得全面的API。了解这些小而重要的技巧将使开发更快、更容易、更愉快,并防止耗时的错误。
第一部分向您介绍Web的基本知识。第二部分让你开始创建一个API,你将在整本书中使用和构建它,直到你有了一个完整的项目。所有配套代码都可以通过GitHub获得。第三部分介绍了更高级的概念,包括如何覆盖开箱即用的约定来定制API以满足您的特定业务需求。到本书的结尾,您将拥有一个功能齐全的API,并且您将更好地为.NET后端开发工作的面试做好准备。
你将学到什么
构建一个从头到尾的Web API
了解网络的主要概念
将API开发中的最佳实践应用到您自己的项目中
了解Web API开发的基本原理
了解RESTful API的基本原理
利用Web API构造实现一个干净且可扩展的API
获得对Web API进行单元测试的实践经验
获得申请初级或入门级.NET Web开发人员工作所需的技能
这本书是给谁的
想用.NET学习API开发的开发人员。掌握一些基本的C#编程知识是有帮助的,因为它用于.NET中的API开发,但不是强制性的。读者应该熟悉编程语言,才能理解代码和示例。没有必要有网络开发经验。