Skip to content

PacktPublishing/Minimal-APIs-in-ASP.NET-Core-6

Repository files navigation

Mastering Minimal APIs in ASP.NET Core

About the Authors

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

What is this book about?

The Minimal APIs feature, introduced in .NET 6, is the answer to code complexity and rising dependencies in creating even the simplest of APIs. Minimal APIs facilitate API development using compact code syntax and help you develop web APIs quickly.

This book covers the following exciting features:

  • Adopt new features in .NET 6 for building lightweight APIs
  • Understand how to optimize API development with Minimal APIs in .NET 6
  • Discover best practices for accessing and using data in Minimal APIs
  • Understand how to validate incoming data to an API and return error messages
  • Get familiar with dependency injection and logging for identifying errors
  • Leverage the translation system in Minimal APIs to provide messages and errors in regional languages

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

app.MapGet(/hello-get, () => [GET] Hello World!);
app.MapPost(/hello-post, () => [POST] Hello World!);
app.MapPut(/hello-put, () => [PUT] Hello World!);
app.MapDelete(/hello-delete, () => [DELETE] Hello World!);

Following is what you need for this book: If you are an existing .NET developer who wants to develop lightweight APIs quickly without much complexity, this book is for you. If you are a developer who is just getting started with the ASP.NET Core framework, this book will help you learn web API development using the latest .NET features. The book assumes intermediate-level knowledge of C# programming, Visual Studio, and REST API concepts.

With the following software and hardware list you can run all code files present in the book (Chapter 1-10).

Software and Hardware List

Chapter Software required OS required
1-10 Visual Studio 2022 Windows, Mac OS X, and Linux (Any)
1-10 Visual Studio Code Windows, Mac OS X, and Linux (Any)
10 K6 (ver 0.39) Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author(s)

Andrea Tosato Andrea Tosato is a full-stack software engineer and architect on .NET applications. Andrea successfully develops .NET applications in various industries, facing sometimes complex technological challenges. He deals with desktop, web, mobile development but with the arrival of the cloud, Azure, it becomes his passion. In 2017 he co-founded Cloudgen Verona, a .NET community based in Verona, Italy, with his friend Marco Zamana. In 2019 he is named Microsoft MVP for the first time for the Azure category. Andrea graduated from the University of Pavia with a degree in computer engineering in 2008 and successfully completed his master's degree, also in computer engineering, in Modena in 2011. Andrea was born in 1986 in Verona, Italy, where he currently works as a remote worker. You can find Andrea on Twitter.

Marco Minerva Computer enthusiast since elementary school, when he receives an old Commodore VIC-20 as a gift, Marco Minerva begins developing with GW-BASIC. After some experiences with Visual Basic, he has been using .NET since its first introduction. He got his master's degree in Information Technology in 2006. Today he proudly lives in Taggia, Italy, works as a freelance consultant and is involved in designing and developing solutions for the Microsoft ecosystem, building applications for Desktop, Mobile and Web. His greatest expertise is backend development as a software architect. He holds training courses. He is a speaker at technical events, writes articles for magazines and regularly makes live streaming about coding on Twitch. He is a Microsoft MVP since 2013. You can find Marco on Twitter.

Emanuele Bartolesi Emanuele is a Microsoft 365 Architect, passionate about frontend technologies and everything related to the cloud, especially Microsoft Azure. He is currently living in Zurich and actively participating in local and international community activities and events. Emanuele shares his love for technology through his blog. He has also became a Twitch Affiliate as a live coder and you can follow him at kasuken to write some code with him. Since 2014 Emanuele is a Microsoft MVP in the Developer Technologies category and since 2022 he is a GitHub Star. You can find Emanuele on Twitter.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781803237824

About

Minimal APIs in ASP.NET Core 6, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published