When developing APIs with ASP.NET Core, handling file uploads is a common requirement. When combined with automatic API documentation provided by Swagger, some challenges may arise. In this article, we'll explore how to correctly configure your API to handle file uploads and ensure that Swagger documents it properly. Prerequisites Visual Studio 2022 or Visual Studio … Sigue leyendo Proper Handling of File Uploads with ASP.NET Core and Swagger
Etiqueta: dotnet
Mastering Refit: A Comprehensive Guide to HTTP Client Generation in .NET
In the ever-evolving world of .NET development, efficient API communication is crucial. Today, I'm excited to share a game-changing approach I've recently implemented: using Refit to streamline the interaction between two REST APIs over HTTP/S. While the trusty HttpClient has long been a staple in our toolkit, Refit elevates API integration to new heights of … Sigue leyendo Mastering Refit: A Comprehensive Guide to HTTP Client Generation in .NET
Automate E-Commerce Product Descriptions with .NET, Microsoft Semantic Kernel & SLM (Phi-3)
In the highly competitive world of e-commerce, the quality and accuracy of product descriptions can make the difference between a successful sale and an abandoned cart. Detailed, attractive, and well-written descriptions not only inform customers but also enhance your site's SEO, driving more organic traffic. In this post, I'll demonstrate how you can automate the … Sigue leyendo Automate E-Commerce Product Descriptions with .NET, Microsoft Semantic Kernel & SLM (Phi-3)
Image analysis with «Phi-3 Vision»
In this blog post, we'll explore how to leverage the new Phi-3 Vision model within a .NET application. I'll walk you through the entire process from downloading the model to writing and executing the code. Step 1: Download the Phi-3 Model To get started, we need to download the Phi-3 Vision model using the huggingface-cli … Sigue leyendo Image analysis with «Phi-3 Vision»
AspNet API Versioning + Swagger multi-version
Cuando tienes que versionar una API REST en AspNet, lo primero que piensas es en el Routing y en como construirlo adecuadamente para gestionar dicho versionado. De la misma manera, generar un Swagger que soporte cada una de estas nuevas versiones. Durante estos días he estado revisando este tema que hacia ya tiempo que no … Sigue leyendo AspNet API Versioning + Swagger multi-version
AspNet HealthChecking + UI for everything
Durantes estos días, comenzamos a mejorar algunos de nuestros sistema de heathcheck para las APIs DotNet. Es justo en este momento cuando me he decido a probar finalmente Xabaril HealthChecks. Sinceramente, me ha resultado mucho mas sencillo de lo que esperaba y, para no disponer de Prometheus o sistema similar (por el momento), considero que … Sigue leyendo AspNet HealthChecking + UI for everything
«DotNet.ApiRest.BasicTemplate». Plantilla para crear proyectos API Rest Net Core.
Hace ya tiempo que quería escribir sobre el uso de plantillas en DotNet Core y, de paso, aprovechar para crear y compartir una de ellas. Una que sirva de punto de partida para todos mis proyectos de tipo API Rest; Demos, PoCs y por supuesto, proyectos reales mejorando así en la productividad y evitando tareas … Sigue leyendo «DotNet.ApiRest.BasicTemplate». Plantilla para crear proyectos API Rest Net Core.
Ejecutando, depurando y desplegando microservicios con «Tye». De paso, un vistazo a LENS
En este post vamos a ver de una manera simple y directa el uso de Project Tye y cómo desplegar aplicaciones .NET Core / .NET 5 en Kubernetes en general y, en AKS en particular. Gracias a Tye, a partir de ahora, este tipo de despliegues va a ser mucho más sencillo. ¿Te atreves? Ademas, … Sigue leyendo Ejecutando, depurando y desplegando microservicios con «Tye». De paso, un vistazo a LENS
Tooling para presentar Charlas/Eventos/Demos
Durante estos días está teniendo lugar la #dotNETConf en la que no solo estamos viento novedades de .NET, también es momento para compartir todo tipo de experiencias. En concreto en este post, quiero hacer mención a dos de las herramientas que usan los Presentadores, y que ademas @shanselman contaba ayer en una de sus charlas. … Sigue leyendo Tooling para presentar Charlas/Eventos/Demos








