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
Categoría: .NET
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
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»
Logging into Elasticsearch using Serilog and logs in Kibana
I have been wanting to talk about this and other similar topics for a long time. Finally, today is de day, mainly because "someone reminded me that I've to do it !" So, let's start: 1. Add following NuGet dependencies: Serilog.AspNetCore Serilog.Sinks.Elasticsearch [Optional] Serilog.Enrichers.Environment Obviously if you are working with Serilog don't forget to also … Sigue leyendo Logging into Elasticsearch using Serilog and logs in Kibana
[Tip] Publishing docker image when trimmed it
Yesterday was one of those days when I got around to upgrading some docker files after the web projects were migrated to DotNet 7. The thing was, I wanted to reduce the size of the docker image as much as possible and take advantage of some improvements since Net 5.0 was released. Although everything seemed … Sigue leyendo [Tip] Publishing docker image when trimmed it
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
Integración con Dapr: Azure API Management Service/Self-hosted Gateway.
En este nuevo post sobre Dapr vamos a ver como integrarnos con Azure API Management (APIM). Para ello y, como viene siendo habitual, usaremos uno de los ejemplos ya conocidos (de acuerdo a posts anteriores), y, en concreto, el ya publicado en github (AllTogether). Antes de comenzar, es conveniente recordar que Azue API Mangement dispone … Sigue leyendo Integración con Dapr: Azure API Management Service/Self-hosted Gateway.
Introducción a Dapr .NET SDK (9/N): Azure Container Apps mode
En el pasado Microsoft Ignite (2021), se revelaba un nuevo servicio, Azure Container App. Un servicio de contenedores Serverless completamente gestionado para la construcción y el despligue de aplicaciones permitiendo facilmente su escalabilidad en base a las siguientes característidas: Tráfico HTTPProcesamiento controlado por eventosCarga de CPU o de memoriaCualquier escalador compatible con KEDA Una gran ventaja … Sigue leyendo Introducción a Dapr .NET SDK (9/N): Azure Container Apps mode
Dapr en Azure Functions (2/N): Deploy a Kubernetes/AKS
En el capítulo anterior, vimos como usar Dapr en Azure Functions para esta misma Arquitectura de ejemplo y trabajamos y la ejecutamos localmente, pues bien, en esta ocasión continuamos, para deplegarla y ejecutarla en un cluster de Kubernetes y, en concreto, en AKS (Azure Kubernetes Services). Realizaremos también algunos ajustes y mejoras, en lo que … Sigue leyendo Dapr en Azure Functions (2/N): Deploy a Kubernetes/AKS
Dapr en Azure Functions (1/N)
Y continuamos hablando sobre Dapr. En este caso, sobre la extensión para Azure Functions que permite que una función interactúe con Dapr para crear aplicaciones nativas en Cloud. Con esta extensión, es posible unir ambos mundos: Serverless y Event-Driven que pueden usar las capacidades de Dapr. En particular, construiremos dos funciones "QueueReader" y "EmailSender" para … Sigue leyendo Dapr en Azure Functions (1/N)









