Get Free Shipping on orders over $79
Mastering Minimal APIs in ASP.NET Core : Build, test, and prototype web APIs quickly using .NET and C# - Andrea Tosato

Mastering Minimal APIs in ASP.NET Core

Build, test, and prototype web APIs quickly using .NET and C#

By: Andrea Tosato, Marco Minerva, Emanuele Bartolesi

eText | 21 October 2022 | Edition Number 1

At a Glance

eText


$49.49

or 4 interest-free payments of $12.37 with

 or 

Instant online reading in your Booktopia eTextbook Library *

Why choose an eTextbook?

Instant Access *

Purchase and read your book immediately

Read Aloud

Listen and follow along as Bookshelf reads to you

Study Tools

Built-in study tools like highlights and more

* eTextbooks are not downloadable to your eReader or an app and can be accessed via web browsers only. You must be connected to the internet and have no technical issues with your device or browser that could prevent the eTextbook from operating.

A developer's guide to writing better, cleaner code faster and quickly becoming productive with .NET 6 and Minimal APIs

Key Features

  • Discover novel solutions to simplify the development of an API through clear, detailed guidelines
  • Explore tips, tricks, and best practices and discover techniques to build a performant application
  • Deep dive into Minimal APIs and use a new development methodology and latest .NET 6 development tools

Book Description

Simplification of code is every developer's dream. Minimal APIs are a new feature in .NET 6 that aims to simplify the code. They are used for building APIs with minimal dependencies in ASP.NET Core. Minimal APIs simplify API development through the use of a more compact code syntax. Minimal APIs are a new feature in .NET 6.

Developers using Minimal APIs will be able to take advantage of this syntax on some occasions to speed up with less code and less file to maintain. You will be introduced to the main new features of .NET 6 and see the basic themes of Minimal APIs, which weren't available in NET 5 and previous versions. You'll see how to enable Swagger for API documentation along with CORS and handle application errors. You will learn to better structure your code with Microsoft's new .NET framework called Dependency Injection. Finally, you will see the performance and benchmarking improvements in .NET 6 that are introduced in Minimal APIs.

By the end of this book, you will be able to leverage Minimal APIs and understand in which way they are related to the classic development of Web APIs.

What you will learn

  • Understand what's new in .NET 6
  • Write Minimal APIs in .NET 6 to reduce the lines of code
  • Use dependency Injection and Logging in Minimal APIs to identify errors
  • Discover best practices for accessing and using data in Minimal APIs
  • Leverage the translation system in a Minimal APIs project to provide errors in the same language
  • Validate incoming data to an API and return any error or message

Who This Book Is For

This book is for .NET Developers who want to build .NET and .NET Core APIs and want to study new features of .NET 6. Basic knowledge of C#, .NET, Visual Studio, and REST APIs are assumed.

Table of Contents

  1. Introduction to Minimal APIs
  2. Exploring Minimal APIs and their Advantages
  3. Working with Minimal API
  4. Implementing Dependency Injection
  5. Using Logging to Identify Errors
  6. Exploring Validation and Mapping
  7. Integration with the data access layer
  8. Adding Authentication and Authorization
  9. Leveraging Globalization and Localization
  10. Evaluating and Benchmarking the Performance of Minimal APIs
on
Desktop
Tablet
Mobile

More in Internet Guides & Online Services

C-Scape : Conquer the Forces Changing Business Today - Larry Kramer

eBOOK

This is For Everyone - Tim Berners-Lee

eBOOK

AI-Powered Search - Trey Grainger

eBOOK