Jump to ratings and reviews
Rate this book

Building Web APIs with ASP.NET Core

Rate this book
Build fully-featured APIs with ASP.NET Core! This all-practical guide is written like a real development project, taking you hands-on with modern APIs utilizing REST and GraphQL standards.

In Building Web APIs with ASP.NET Core you will learn how

Set up your environment with VS 2022, Node, Git, and more Create a ASP.NET Core project from scratch Integrate with SQL Server Use Entity Framework Core to set up a data model Create back-end controllers Design an API to serve data Write API documentation using Swagger and Swashbuckle Consume an API using typical web client-side frameworks Handle requests and routes using controllers and Minimal API Release and deploy your Web API in production on cloud-based hosting services such as MS Azure
Building Web APIs with ASP.NET Core is a practical beginner’s guide to creating your first web APIs using ASP.NET Core. In it, you’ll develop an API that feeds web-based services, including websites and mobile apps, for a board games application. The book is cleverly structured to mirror a real-world development project, with each chapter introducing a new feature request. You’ll build your API with an ecosystem of ASP.NET Core tools that help simplify everything from setting up your data model to generating documentation.

About the Technology

Web APIs are the front door to an application, providing controlled access to its data and features. ASP.NET Core, Microsoft’s web framework, simplifies and accelerates API creation with powerful, developer-friendly features, including an innovative “no compile” coding experience. It is reliable, fast, free, open-source, and backed by Microsoft’s legendary support.

About the Book

Building Web APIs with ASP.NET Core teaches you how to write safe, maintainable, and performant REST APIs. It’s full of best practices for modern and classic API styles, including REST and GraphQL. You’ll love the groundbreaking Minimal API model that helps you build pro-quality APIs with just a few lines of code. Each chapter contains realistic user stories, backlog items, and development tasks.

What’s Inside

Create an ASP.NET Core project from scratch Set up a data model with Entity Framework Core Create backend controllers Design an API to serve data
About the Reader

For developers with some experience using the .NET Framework.

About the Author

Valerio De Sanctis has more than 20 years of experience in web development and project management using ASP.NET, PHP, and Java.

Table of Contents

PART 1 - GETTING STARTED
1 Web APIs at a glance
2 Our first web API project
3 RESTful principles and guidelines
PART 2 - BASIC CONCEPTS
4 Working with data
5 CRUD operations
6 Data validation and error handling
PART 3 - ADVANCED CONCEPTS
7 Application logging
8 Caching techniques
9 Authentication and authorization
10 Beyond REST
PART 4 - TOWARD PRODUCTION
11 API documentation

894 pages, Kindle Edition

Published July 11, 2023

13 people are currently reading
19 people want to read

About the author

Valerio De Sanctis

15 books8 followers
Valerio De Sanctis is a skilled IT professional with more than 15 years of experience in lead programming, web-based development, and project management using ASP.NET, PHP and Java. He held senior positions at a range of financial and insurance companies, most recently serving as Chief Technology Manager and Chief Operating Manager at a leading after-sales and IT service provider for many top-tier life and non-life insurance groups.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
8 (61%)
4 stars
3 (23%)
3 stars
2 (15%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Morten .
82 reviews7 followers
July 26, 2023
This book offers a concise, straight-to-the-point guide on developing Web APIs using ASP.NET. While the content is generally well-written, the API endpoint examples provided could be improved. The author does not always adhere to established best practices for API design, an aspect which could be confusing for readers who are trying to learn how to develop efficient, reliable APIs.
2 reviews
June 1, 2023
When investigating how to write rest api's this book was a great map to guide me.
The pages about Authorize/Authenticate was great.

And while using the book I got some new info about documenting with swagger aswell
Need to have in my library.


1 review
May 31, 2023
A real world book about Asp Net Core APIS, must-have for junior and senior backend developer.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.