Book description
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 to:
- 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.
Quotes
Great blend of foundational and advanced concepts and techniques.
- Darren Gillis, BlackLabel Digital
REST, authentication/authorization, validation, and even documentation are all covered in one place. This is the book you’re looking for!
- Paul Brown, VacoBuilt
Fantastic! Provides realistic examples and gets the reader comfortable quickly with API development.
- Foster Haines, J2 Interactive
I like the pragmatic way to learn by building a real ASP.NET Core API.
- Enzo Aggazio, SCAI Lab
Table of contents
- inside front cover
- Building Web APIs with ASP.NET Core
- Copyright
- contents
- front matter
- 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
- 11.1 Web API potential audience
-
11.2 API documentation best practices
- 11.2.1 Adopt an automated description tool
- 11.2.2 Describe endpoints and input parameters
- 11.2.3 Add XML documentation support
- 11.2.4 Work with Swashbuckle annotations
- 11.2.5 Describe responses
- 11.2.6 Add request and response samples
- 11.2.7 Group endpoints into sections
- 11.2.8 Exclude reserved endpoints
- 11.3 Filter-based Swagger customization
- 11.4 Exercises
- Summary
- 12 Release and deployment
- appendix A.
- index
- inside back cover
Product information
- Title: Building Web APIs with ASP.NET Core
- Author(s):
- Release date: June 2023
- Publisher(s): Manning Publications
- ISBN: 9781633439481
You might also like
book
Web API Development with ASP.NET Core 8
Develop web API applications using design patterns, advanced customization, and cutting-edge technologies, such as SignalR, gRPC, …
video
Ultimate ASP.NET Core Web API Development Guide
Learn how to build a RESTful API using ASP.NET Core API, Entity Framework, enterprise-grade practices for …
video
Ultimate ASP.NET Core Web API Development Guide
Microsoft .NET is the platform that drives the business technology of many of the top corporations …
book
ASP.NET Core in Action, Second Edition
Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to …