Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C#
Langue : anglais
Edité par Packt Publishing 2022-10-21, 2022
- Livre broché
- Neuf

Vendeur : Chiron Media, Wallingford, Royaume-UniChiron Media
Vendeur AbeBooks depuis 2 août 2010
Etat: Neuf
EUR 42,85
Quantité disponible : Plus de 20 disponibles
Ajouter au panierN° de réf. du vendeur 6666-IUK-9781803237824
- Titre
- Mastering Minimal APIs in ASP.NET Core: Build, test, and prototype web APIs quickly using .NET and C#
- Auteur
- Andrea Tosato,Marco Minerva,Emanuele Bartolesi
- Éditeur
- Packt Publishing 2022-10-21
- Année de publication
- 2022
- État de l'article
- New
- Reliure
- Paperback
- Langue
- anglais
- ISBN à 10 chiffres
- 1803237821
- ISBN à 13 chiffres
- 9781803237824
Get a practical understanding of how to build lightweight ASP.NET Core applications and write cleaner, testable, and secure APIs with .NET 6 and Minimal APIs
Key Features
- Explore clear and detailed guidelines to design and develop APIs for ASP.NET Core apps
- Discover expert tips, tricks, and best practices to build performant APIs
- Implement proven web API development methodologies using .NET 6 features and tools
Book Description
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 practical guide explores Minimal APIs end-to-end and helps you take advantage of its features and benefits for your ASP.NET Core projects. The chapters in this book will help you speed up your development process by writing less code and maintaining fewer files using Minimal APIs. You’ll also learn how to enable Swagger for API documentation along with CORS and handle application errors. The book even promotes ideas to structure your code in a better way using the dependency injection library in .NET. Finally, you'll learn about performance and benchmarking improvements for your apps.
By the end of this book, you’ll be able to fully leverage new features in .NET 6 for API development and explore how Minimal APIs are an evolution over classical web API development in ASP.NET Core.
What you will learn
- 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
Who this book is for
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.
Table of Contents
- Introduction to Minimal APIs
- Exploring Minimal APIs and Their Advantages
- Working with Minimal APIs
- Dependency Injection in a Minimal API Project
- Using Logging to Identify Errors
- Exploring Validation and Mapping
- Integration with the Data Access Layer
- Adding Authentication and Authorization
- Leveraging Globalization and Localization
- Evaluating and Benchmarking the Performance of Minimal APIs
« Synopsis » peut appartenir à une autre édition de cet ouvrage.
À propos de l’auteur
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.
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 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.
« A propos de ce titre » peut appartenir à une autre édition de cet ouvrage.
Chiron Media
Wallingford, Royaume-Uni
Vendeur AbeBooks depuis 2 août 2010
Frais d'expédition de Royaume-Uni vers Etats-Unis
| Article | 14 à 21 jours ouvrés | 14 à 21 jours ouvrés |
|---|---|---|
| Premier article | EUR 18,30 | EUR 18,30 |
Modes de paiement
Profil professionnel du vendeur
WRAP Ltd
Unit 4, 119 Loverock Rd
Reading, Royaume-Uni RG30 1DZ
Conditions de vente
TBA
Droit de rétractation
Si vous êtes un consommateur, vous pouvez exercer votre droit de rétractation sur le contrat conformément à ce qui suit. Le mot « consommateur » désigne toute personne physique agissant à des fins qui n'entrent pas dans le cadre de son activité commerciale, artisanale ou professionnelle.
Informations concernant le droit de rétractation
Droit statutaire de rétractation
Vous avez le droit d'exercer votre droit de rétractation sur ce contrat dans les 14 jours sans donner de raison.
Le délai de rétractation expirera au bout de 14 jours à compter du jour où vous-même, ou un tiers autre que le transporteur et désigné par vous, prendrez physiquement possession de la dernière marchandise, du dernier lot ou de la dernière pièce.
Pour exercer votre droit de rétractation, remplissez électroniquement et envoyez une déclaration claire sur notre site Web, sous « Vos achats » dans « Votre compte ». Nous vous communiquerons sans délai un accusé de réception de cette rétractation sur un support durable (par exemple, par e-mail).
Pour respecter le délai de rétractation, il vous suffit d'envoyer votre message concernant l'exercice de votre droit de rétractation avant l'expiration du délai de rétractation.
Effets de la rétractation
Si vous exercez votre droit de rétractation sur ce contrat, nous vous rembourserons tous les paiements que vous avez effectués, y compris les frais de livraison (à l'exception des frais supplémentaires résultant du choix d'un mode de livraison autre que le type de livraison standard le moins cher que nous proposons).
Nous pouvons déduire du remboursement la perte de valeur de toute marchandise livrée, si la perte est le résultat d'une manipulation inutile de votre part.
Nous effectuerons le remboursement dans les meilleurs délais, et au plus tard 14 jours après le jour où nous aurons été informés de votre décision d'exercer votre droit de rétractation sur ce contrat.
Nous effectuerons le remboursement en utilisant le même moyen de paiement que celui que vous avez utilisé pour la transaction initiale, sauf si vous en avez expressément convenu autrement ; en tout état de cause, aucuns frais ne vous seront facturés à la suite d'un tel remboursement.
Nous pouvons suspendre le remboursement jusqu'à ce que nous ayons reçu les marchandises ou que vous ayez fourni la preuve que vous avez renvoyé les marchandises, en fonction de la première éventualité.
Vous devez renvoyer les marchandises ou les remettre à Chiron Media, Wallingford, United Kingdom, sans retard injustifié et, en tout état de cause, au plus tard 14 jours à compter du jour où vous nous avez communiqué votre décision de rétractation du présent contrat. Le délai est respecté si vous renvoyez les marchandises avant l'expiration du délai de 14 jours. Vous devrez prendre en charge les frais directs du renvoi des marchandises. Vous n'êtes responsable que de toute diminution de valeur des marchandises résultant d'une manipulation autre que celle nécessaire pour établir la nature, les caractéristiques et le fonctionnement des marchandises.
Exceptions au droit de rétractation
Le droit de rétractation ne s'applique pas à ce qui suit :
- Distribution de journaux, de revues ou de magazines, à l'exception des contrats d'abonnement ; et
- Fourniture d'un contenu numérique qui n'est pas fourni sur un support matériel (par exemple, sur un CD ou un DVD) si vous avez accepté, lors de votre commande, que nous puissions commencer à le livrer et que vous ne puissiez pas exercer votre droit de rétractation une fois la livraison commencée.
Conditions d'expédition
Shipping costs are based on books weighing 2.2 LB, or 1 KG. If your book order is heavy or oversized, we may contact you to let you know extra shipping is required.